So the father of my unborn child is now threatening to take me to court, attempting to prove I'm an unfit mother, which will in turn give him custody of the baby and of course why would they leave my daughter in my care if I was proven to be an unfit mother?! I am absolutely livid right now.
He's going to use all the messages I've sent him about taking about being suicidal and wanting help because I don't feel like it's safe for the baby to be around me while I try to get myself some help.
I'd start counselling now! That way IF he does take you to court you have back up and can say "yeah, I've had some rough times - but look at the steps I'm taking to fix it!" Not only that you'll have a counsellor/psychiatrist to back you up.
And for the love of your kids stop sending those types of texts.