Section 18. Any officer named in section sixteen who neglects or refuses to comply with said section or who violates any rule or regulation of the department of public health made under section seventeen shall forfeit not more than fifty dollars.