How do you keep from hating him and running away?

Max
It seems so many men become complete slime balls when pregnancy or a new child is involved and so many women say "I never would have thought" (myself included) but how do you keep from letting his slime ball behavior, turn you into the mother who wants nothing to do with him regardless of the child? 
I see myself struggling with this really soon...