Any person who violates any of the provisions of this chapter shall be guilty of a misdemeanor, and upon violation thereof shall be punishable by a fine of not more than five hundred dollars or imprisonment in the county jail for a period of not more than six months or by both such fine and imprisonment.