(a) The maintaining upon the premises by the owner or any person occupying such premises of wells, cisterns, pits and other holes in the earth where such are not securely covered or enclosed shall constitute a nuisance, and it shall be the duty of all persons owning or occupying those premises within the county to keep those wells, cisterns, pits and other holes in the earth on such premises securely covered or enclosed, so as to prevent injury therefrom to the person or property of others. (b) Old and unused wells shall be filled by the owners or agents in charge of the property upon which the wells are located. It shall be the duty of the inspector to give notice as provided in this article to any person having such a well to abate it.