139(2)After having prepared and signed a notice referred to in subsection (1), the by-law enforcement officer may, either before or after the notice is given, take any measures necessary to terminate the danger giving rise to the emergency, and, for this purpose, the by-law enforcement officer who prepared the notice and the authorized employees of the local government or other persons acting on behalf of the local government may, at any time, enter the premises, building or other structure in respect of which the notice was prepared.