A person commits an offence if:
(a) a security officer or an authorised court officer gives the person a direction under section 20, 21 or 22; and
(b) when, or as soon as practicable after, giving the direction, the officer informs the person that the person may commit an offence if he or she does not comply with the direction; and
(c) the person does not comply with the direction.