PROSECUTOR: Fireworks ban is legal