"enter upon any land in so far as this may be necessary in order to exercise z power conferred on him or her by the provisions of this act provided tha entry may not be gained to a residence after dark without a warrant or thf occupier s permission"