Every person who violates any of the provisions of Section 558 is guilty of a misdemeanor and upon conviction thereof shall be punished by a fine of not more than six hundred dollars ($600) or by imprisonment for not more than 30 days, or by both such fine and imprisonment.