The law is blind. The more we bend this the more our society breaks. Especially in the eyes of our children.
A holistic approach is to address all of these simultaneously.
A holistic approach is a principled one. Clear laws are principled.
For example, noise ordinances in SF say there's a violation if event or action is 10 decibels greater than the ambient.
Or, if you push someone, harass a child en route to school, shoot up on the street, defecate on the street, etc. These are clear violations.
Adequate mental health institutions seems an appropriate start. But it also needs to be coordinated regionally. San Francisco and LA can not bear the burden of the western United States.