A pitfall of this mentality, at least in my experience, is that people I hurt are usually much better judges of whether I hurt them than I am.
Something I learned that helped is: you can hurt someone without being wrong. "I regret that my actions had this effect on you," is a good place to start a conversation when I'm not (yet?) convinced I would have done anything differently in hindsight.
Often, simply acknowledging that someone has been hurt by my actions, and trying to understand why, has yielded far better outcomes than sticking with my judgment. Both in that they affected party feels better, and in that I get to add a new dimension to my understanding of social dynamics.
It often doesn't matter how legitimate someones' complaint is according to my personal worldview; what matters is how the affected feel.