I’m in a situation

My child father has told me he would file custody of my kid when I was 7 weeks during an argument... now I’m 10 weeks and I posted my announcement on social media and he had to post something also talking about mothers not allowing dads in there kids life and talking about if anything else it’s up ... soo I messaged him and tried to tell him he can be around and what he did I’m not holding it against him the only thing I want is him to stop threatening me but he just ignored it and asked when my gender reveal was .... sooo now I’m terrified because i don’t want to be in a situation of losing my child or even going to court because this man doesn’t get his way ... my mom told me I can have him around but I probably shouldn’t have him sign the birth certificate Incase he try’s to take me to court