Before we get the usual dickwits arguing over shit they know nothing about.

"69 Offence of being in or entering or leaving prohibited
brothel
(1) A person must not be found in or entering or leaving a
prohibited brothel.
Maximum penalty—60 penalty units or 1 year’s
imprisonment.
(2) However, a person other than the owner or occupier of the
premises does not commit an offence if the person was in or
entering or leaving the premises for a lawful purpose.
(3) Also, the owner or occupier does not commit an offence if the
owner or occupier enters the premises under a court order."