Every person who violates any provision of this article, building standards published in the State Building Standards Code relating to swimming pools, or the rules and regulations adopted pursuant to the provisions of this article, is guilty of a misdemeanor, punishable by a fine of not less than fifty dollars ($50) nor more than one thousand dollars ($1,000), or by imprisonment for not more than six months, or both.