It's impossible for any player to win in the end or always win when the house has the edge.
Occasionally someone can walk away at the right time after a big win, but it's very difficult.
The people that are making money consistently through gambling are called grinders...it's possible to do in some games like poker when you're able to read people, not against computers where the odds are fixed.
Check out the movie Rounders, you'll love it.
Greed is one of the factors against the gambler. If the gambler leave the gambling table after big win, then he can keep his winning. But greed keep him there, then the house edge wins eventually. That is the reason there are so many profitable casinos.