(d)for any other purpose connected with the health, cleanliness or comfort of the inhabitants, and may, by like order, prohibit the bathing or the washing of animals or clothes or other things at any public place not set apart for such purposes, or prohibit any other act by which water in any public place may be rendered foul or unfit for use, or provide for alternative facilities and conveniences to regulate the use of any tank, well, spring or water-course to promote public safety, health and welfare.