In many jurisdictions of the United States, the police can have someone involuntarily committed to a psych ward if their mental health is at a state where they present a clear danger to themselves or others. In Florida, for example, this is called the Baker Act. Therapists in various jurisdictions may be required or strongly recommended to call the police and have someone institutionalized if they are expressing immediate desire to commit suicide or homicide. Even if there were the best of intentions it's a goddamn farce.