Section 12. Any violation of the provisions of section one of this act shall be deemed a misdemeanor, to be punished by a fine not exceeding five hundred dollars, or by imprisonment not exceeding three months, or both, at the discretion of the court.