Inspections. The Code Enforcement Officer, or his or her duly authorized assistant(s), may enter any building or upon any land in the execution of his or her official duties with the permission of the owner or a tenant in possession; the Code Enforcement Officer may also enter any building or upon any space where the public is otherwise invited where the landowner or tenant in possession does not grant such permission or pursuant to a warrant issued by a court of competent jurisdiction.