When people set up barriers or boundaries with you, they are not attacking your person, they are rejecting your behavior.
This is hard to hear, because we assume our behavior is why people like us, and we can modify our behavior to be loved.
Setting up a boundary and showing where each person’s responsibility lies is the kindest form of love: it sets responsibility and can love even if you behave atrociously or perfectly.