Whoever violates any provision of this act is guilty of a misdemeanor, and upon conviction thereof, shall be sentenced to pay a fine not exceeding five hundred dollars ($500), or undergo imprisonment not exceeding six months, or both.
35 P.S. § 1651.12