Section 6. Any city, town or district officer who wilfully neglects or refuses to comply with any duty or requirement imposed upon him by the preceding sections shall be punished by a fine of not less than twenty-five nor more than two hundred dollars.