(a) Whenever by this chapter any act is prohibited or is made or declared to be unlawful, or the doing of any act is required or the failure to do any act is declared to be unlawful, where no specific penalty is provided therefor, the violation of such provision of this chapter shall, upon conviction, be punishable by fine or imprisonment as provided by section 1-19. Each day such violation continues shall be considered a separate offense. Nothing contained in this section shall prevent the county from taking such other lawful action as is necessary to prevent or remedy any violation of this chapter. (b) Any person, owner or custodian of an animal who is convicted of a third offense under the provisions of this chapter shall be prohibited from owning, keeping or harboring any animal in the county as long as residency in the county is maintained. Should that person leave the county, upon his return the same restriction shall apply.