Section 295. Whoever violates any provision of section two hundred and ninety-one shall be punished by a fine of not less than twenty-five nor more than one hundred dollars or by imprisonment for not more than two months.