Section 9E. Whoever violates any provision of sections nine A to nine C, inclusive, or refuses to comply with any requirement of the board of health authorized therein or in the preceding section shall be punished for a first offence by a fine of not less than twenty nor more than fifty dollars; for the second offence by a fine of not less than fifty nor more than one hundred dollars or by imprisonment for not more than ten days; and for any subsequent offence by a fine of not less than two hundred and fifty dollars or by imprisonment for not more than one month, or both.