In these situations the Buddha’s instructions are all to do with the ‘internal’: remaining unaffected ,having compassion towards the offender/s and radiating Noble Metta, and with that as basis, radiating It to all beings everywhere. MN. 21.
Now you will be taken for a weakling, a coward, for the world will praise its own! (Thag 6.12 : “When you know that the other is angry, you act for the good of both yourself and the other if you are mindful and stay calm. People unfamiliar with the Teaching consider one who heals both oneself and the other to be a fool……remember the Simile of the Saw…remember the simile of the Child’s Flesh” (SN12.63)). Here ‘one who heals both oneself and the other’ refers to the one who sees that there can be no effect without a cause. “This abuse, this pain I am going through, is deserved. But I will not prolong this tit-for-tat into future births by retaliating. It stops here. ‘ Only one needs to see this..
There is also the debate between Sakka and Vepacitti (SN 11.5), with the panel of judges drawn from both camps (devas and asuras) in the end declaring victory to Sakka.
I hope this helps.