Section 62. A town operating a plant may pass ordinances or by-laws, imposing penalties not exceeding fifty dollars, to protect the plant, control its use and prevent accidents from gas or electricity supplied by it, and to govern consumers in their use thereof.