(A) Whenever it is necessary to make an inspection to enforce any of the provisions of, or perform any duty imposed by, this section or when there is reasonable cause to believe that there exists in any building or upon any premises any violation of the provisions of this chapter or state law, the police officer is authorized at all reasonable times to inspect the same for compliance with the provisions of this section or any state law; provided that the officer shall comply with all laws and regulations governing the entry on and into private property.
(B) In the event the police officer has reasonable cause to believe that the keeping or maintaining of an animal is so hazardous, unsafe, or dangerous as to require immediate inspection to safeguard the animal or the public health or safety, the officer shall first present proper credentials and request entry explaining the reasons therefor. If entry is refused or cannot be obtained because the owner or other person having charge or control of the property cannot be found after reasonable search, the office shall have recourse to secure lawful entry and inspection of the property in accordance with the laws of the state.