By not dealing with them. Although modern psychology suggests that our behavioral issues stem from childhood experiences.... So there's that. Sometimes it's better to keep an open mind about their state of mind and perhaps realize that they may need some sort of support or ample space to express themselves, and perhaps our own perception of them is flawed or unfair/selfish.