Depends on the jurisdiction, but intentionally adding potentially harmful substances to food in a situation like this can absolutely be illegal and get people put in jail.
That's simple fact, whether you agree or not.
I tend to think something like this should be okay if, like, management was involved but says they can't do anything, but my opinion doesn't matter - the law does.