Since there is no strategy to win while gambling, unless you are playing poker against other players or sports betting, the best way to ''not lose'' is to play only with bonuses offered from the casinos. Almost all casinos and online gambling websites offer some sort of bonus, welcome bonus, referral rewards, etc. The catch is that you will have to wager that amount many times in order to be able to withdraw, however if you only play using bonuses you will eventually hit a big win.
It's not that easy, playing only using bonuses will be more difficult because we have to reach a certain rollover or anything that fits the rules that are enforced and all those rules will be difficult to achieve if you don't have a way or trick in the game. There is no way to overcome losses in gambling because losing is something that cannot be avoided about this.