Any person who fails to comply with the provisions of this chapter or of the regulations made pursuant to this chapter is guilty of a misdemeanor and punishable by a fine not exceeding one thousand dollars ($1,000) or by imprisonment not exceeding six months, or by both such fine and imprisonment.