Know your worth. You-Are-Not-A-Backup-Plan
When you start seeing your worth and suddenly realize that you have always been stepped on for a very long time and you decide to stop being a doormat, you'll find it harder to stay around people who don't value you.
The most important relationship you can have in life is one with yourself. If you have that, then any relationship is a PLUS and not a must.