The council may, for a period not exceeding 90 days, prohibit access to any immovable or part of an immovable accessible to the public in which an activity or use is carried on without the permit, certificate or other authorization required by the municipality where the activity or use may endanger the life or health of persons or cause serious or irreparable damage to property.