If an animal control officer, health department representative, any law enforcement officer, or other city or county official has reasonable cause to believe that the keeping or maintaining of any animal is so hazardous, unsafe, or dangerous as to require immediate inspection to save the animal or protect the public health or safety, such person shall have the right to immediately enter and inspect such property and may use reasonable means required to effect such entry and make inspection whether such property be occupied or unoccupied and whether or not permission to inspect has been obtained. If the property be occupied, such person shall first present proper credentials to the occupant and demand entry, explaining the reasons therefor and the purpose of the inspection. Failure or refusal to permit inspection hereunder shall constitute a misdemeanor.