Finding the perfect balance between risk and reward in gambling.

Hello all, I've been wrestling with how to balance risk and reward when I gamble. Sometimes I go all in hoping for a massive payout, but I've also seen myself blow through my funds too quickly. Once, I nearly emptied my account in a single night, and it really scared me. Any practical approaches for striking that sweet spot between playing it safe and taking bold chances?