Having compassion and empathy for why someone behaves the way they do based on their experiences, never means you have to tolerate the behavior or hold space for it. You can absolutely have compassion and set a boundary. This is what it means to also have compassion for yourself.