Section 22. Whoever violates any provision of section seventeen, eighteen or nineteen shall be punished by a fine of not more than fifty dollars. Inspectors of plumbing or other proper authorities shall cause the provisions of said sections to be enforced.