The governing authorities of municipalities shall have the power to make regulations to protect property, health and lives and to enhance the general welfare of the community by restricting the movements of the citizens, or any group thereof, of such municipalities when there is eminent danger to the public safety because of freedom of movement thereof.