If you are feeling greedy, the right thing to do is not to gamble at all. This kind of game is designed to make greedy people lose money. People who play for fun, on the other hand, have less chances of losing a lot of money, since they do not feel pressured to play over and over again.
I think if we want to control our greed on gambling we should swear first to do not achieve our limits in any kind of cases. We must sets some rules and follow it. I think there is not obligation to quit gambling at all, also because it's not easy. So greed can be avoided by using mind and heart, and think about the results.