A person who violates this chapter is guilty of a misdemeanor, and upon conviction thereof shall be punished by a fine not to exceed one thousand dollars ($1,000) or by imprisonment in the county jail for a period not to exceed 180 days or by both that fine and imprisonment.