Any person violating or failing to comply with any of the provisions of this chapter shall, upon conviction thereof, be subject to a fine of not more than $500 or may be imprisoned in the county jail for a term not to exceed 90 days, or both.