Every person guilty of a misdemeanor under the provisions of this chapter, shall, upon conviction thereof, be punished by imprisonment in the county jail for not more than six months, or by a fine not exceeding one thousand dollars ($1,000), or by both.