There is something known as Apaddharma . In self-defence in order to save one's life, one may react causing some injury to others. This is acceptable by SAstras under certain circumstances.
In MahAbhAratam, when the kauravas violate dharma yuddha, one can see glimpses of adharma yudhha on the part of PANdavas as well in some cases.
But there are a few great Sages who are GuNAtItas who only do good even for others who harm them. They truly deserve to be worshipped by all.
upakArishu yah sAdhuh sAdhutve tasya ko guNah !
apakArishu yah sAdhuh sa sAdhuh sadbhirucyate !!
Ordinary mortals are always driven by their VAsanas and triguNas.