Antenatal depression

Anyone else struggled with this? I'm really getting to my wits end. Struggled pre pregnancy, it's even worse now. I'm under perinatal mental health and a mental health team but it's getting worse now and I'm starting to have suicidal thoughts and thoughts of self harm. No intent of acting. I'm just at a loss. What do I do.