That's great advice if you're 18 years old; but some things are worth the risk.
If you're not all in, you're not in at all. While this certainly applies to work in some cases, it applies as much as again if you want to start a family.
Modern relationships are a hell because everyone has their eye on the door at all times - ready to bolt at a moment's notice if something goes wrong, or if something better comes along.
You'll never have a family of your own with that mindset; it's a problem that causes itself.