What if I were to steal from the rich to give to the poor?
Wouldn't that mean that you were acting out of greed?
No, because I would be giving the money to people who need it by taking it from people who have too much!
It is very kind of you to want to help out the poor, but it is wrong to steal (even from the rich) to do so.  Theft is still illegal, and a betrayal of someone else's property.
I see, so you're probably one of the rich ones then.
Regardless of your views on wealth inequality, stealing from people is still wrong and illegal. Even if you do it for a noble cause, stealing can land you in jail for a long time. If you want to help out those less fortunate, consider donating to charity or volunteering your time at a charity.