It funny to me that the standard example of speech that shouldn't be protected is the only one that's required to be protected by building codes.
After Holmes' opinions in the Schenck trilogy, the law of the United States was this: you could be convicted and sentenced to prison under the Espionage Act if you criticized the war, or conscription, in a way that "obstructed" conscription, which might mean as little as convincing people to write and march and petition against it. This is the context of the "fire in a theater" quote that people so love to brandish to justify censorship. [0]
Every time this stupid meme reemerges, it serves only to identify people who have no idea what they're talking about.
[0] https://www.popehat.com/2012/09/19/three-generations-of-a-ha...
I presume you mean that the limitations on speech take the form of punishments after the fact for saying "fire" when there wasn't one. I agree this is sensible.
But I think it's an important point that we can't (and shouldn't, and don't) ban people entirely from shouting "fire" in a crowded theatre, because if they're right, it's important to know.
I think it's worth discussing this more fleshed-out example, because it shows that in order to limit speech without shutting down useful information, you need to have some sort of trusted fact-finding apparatus to punish false alarms, which then become an important locus of power.