There was a person, who used to do many good and welfare work e.g. Visit to holy places, taking care of poor children, serving the patients etc.
But his circumstances were not improving and he was always thinking about this.
On the other hand a man was successful and living in a pleasant circumstances, because his inner thought was pure.
One day a wise man explained him that he is doing all these things during his working hours and that means you are cheating your employer and it indicates that your inner thought is not pure. Therefore your circumstances is not improving. If you are doing some Good on the cost of other, then you will not get its result in your favor.
Good thoughts and actions can never produce bad results; bad thoughts and actions can never produce good results.