Any person who shall violate any of the provisions of Section
840 to
842 of this Article shall be deemed guilty of a misdemeanor and shall be punished by a fine of not exceeding $500, or by imprisonment in the County Jail for not exceeding six months, or by both such fine and imprisonment.