You see, a “bad” person can be helpful to others while a “good” person can be hurtful. So what is the difference?
According to scientist/theologian Emanuel Swedenborg, evil has its origins in self-love. In other words, a person can be helpful for selfish reasons and a good person can make an innocent mistake. Selfishness is what makes an action different (and evil) from the very same action taken by an angelic being.
We are not to judge evil or good deeds based on how much they may outwardly affect worldly society, but on how innocently they are performed (all good deeds benefit others, but they are not all helpful to the doer’s soul).
Innocence is what makes “good works” good. (God’s love only flows in where there is innocence.) So don’t just try to do good deeds for the world to see—strive for the inner cleansing and sincerity that produces innocence.