(1) An authorised person, at all reasonable times (a) has access to any building work or building; and(b) may enter any premises for the purpose of exercising any power or performing any function under this Act.(2) An authorised person must not enter any premises used for residential purposes without (a) the consent of the occupier; or(b) a search warrant.(3) Subsection (2) does not apply if (a) the safety of the public or any occupant is at risk; or(b) the premises are affected by an emergency order.