Any person who violates any of the provisions of this chapter is guilty of a misdemeanor punishable by imprisonment in a county jail not exceeding six months, or by a fine not exceeding two thousand five hundred dollars ($2,500), or by both that fine and imprisonment.