You learn by first listening, and asking questions. No one expects everyone to be perfect out of the gate, but you at least have to make an effort.
I think as well that we as a society should learn to be more empathic, more tolerant, to learn how to forgive, and to avoid mob judgements.
Both, are my opinions. I don't know if there are any studies or references to this.