That’s why telling fire in a theater isn’t illegal.
The illegal part is inciting panic, especially if the panic results in injury to persons because of a stampede.
Yelling fire in a theater that is actually on fire is perfectly legal.
WW