pregnancy and partner

What would you do if your partner didn't want the baby? And he says that it'll ruin your relationship and he'd regret the baby and he'll not stay with you. But he'd support the baby? 
I think he's scared and that he'll accept it when the baby is here. 
But I'm scared I'll be on my own, but that's a risk I'm willing to take. 
Please no nasty comments. I just need to good advice on how to deal with the situation. Thank you all