Section 43. Whoever violates any provisions of sections thirty-nine to forty-two, inclusive, or of any rule or regulation made under section thirty-nine or thirty-nine A, shall be punished for a first offence by a fine of not more than one hundred dollars and for any subsequent offence by a fine of not more than five hundred dollars, or by imprisonment for not more than two and one half years, or both.