It is legal to shout "fire", more or less. Or at least there's no prior restraint.
I wouldn't suggest it, because there's plausibly various laws that apply where you live, and it would be expensive to get them thrown out. Unless there's an actual fire, of course.