Except as may otherwise be provided, any person who shall knowingly violate any of the provisions of this chapter, or any rule or regulation of the state board of health, or any order or regulation of the board of supervisors of any county or any municipal ordinance herein authorized to be made, shall be guilty of a misdemeanor, and on conviction shall be punished by fine not exceeding Five Hundred Dollars ($500.00), or by imprisonment in the county jail for not more than six (6) months, or by both.