To prohibit, restrain or regulate the discharge of fire-arms and the explosion of gunpowder and guncotton, and the firing of firecrackers and fireworks of any kind within the city.