Maternal nursing

A postnatal patient tells the nurse they are thinking about harming themselves. What is the immediate priority?