"While hospitalization feels like the safe option, there is no evidence that it prevents suicide and it loses the opportunity to learn coping skills in the real world. The task is to identify the cause of your wife’s emotional pain and help her find a solution for it—a combination of medication, monitoring and learning skills such as problem solving and distress tolerance . If we can do that, the suicidal feelings will likely reduce. The experience will help her next time there is a crisis and reduce the likelihood of repeated hospital admissions. Although this might feel more risky in the short term, statistically it is not."
https://www.scientificamerican.com/article/suicide-risk-assessment-doesnt-work/