Provided permission is granted from the occupant, any county law enforcement officer has the power, upon presentation of the proper credentials, to enter and inspect any single-family dwelling, multifamily dwelling, building, structure or premises within the unincorporated areas of the county as may be necessary to enforce the provisions of this article. If such permission is refused, or is otherwise unobtainable, a search warrant must be obtained upon the showing of probable cause to believe that a violation of this article may exist, before such entry or inspection is made.