don't know what to do

my boyfriend packed up and left with no warning.we were splitting the bills. I can't afford it quite on my own so now he's threatening to take me for full custody of our baby who isn't even born yet(im only about to be11 weeks)..bc "I'll end up homeless without him here to help" so he's threatening to take me to court. he can't even barely take care of himself,he doesn't know how to cook, he barely cleans,n makes less than I do but lives back home with his mommy..i don't know what to do