A 32-year-old man is brought to the emergency department by police after threatening to jump from a bridge. He reports persistent thoughts of suicide, has consumed alcohol and says he will kill himself if discharged. What is the most appropriate immediate management?