how to avoid a bad relationship