As the saying goes ''bet on what you can afford to lose''. The same thing goes for investment. If you always have that at the back of your mind, you're good to go at betting.
There will be a time you'll lose and also time to win. Depending on how luck shines on you that day. But once you notice luck is against you for that day, it would be advisable to withdraw immediately to avoid more losses and try again, some other day.