Simply deposit only what you can afford to lose. Bet only small percentage of your bankroll and never increase your bet to an insane percentage whenever you are experiencing lose streak because you can still recover if you will just play the same and stay focus since the game has only minimal house edge.
Just make sure you are still enjoying while playing or else just stop gambling because the purpose of gambling to make you entertained by the time you play. Profit will just follow if you are consistent on your game and doesn’t subject to any abnormal increase of bet when tilted.
So yes of course the amount of budget that is not excessive will have an important role as one of the precautions, because I'm not sure you can accept if the final result loses when carrying a large amount of budget that you cannot afford. Right, make sure we will stay awake in each of our gambling sessions, after all this is just an activity that relies on luck alone no more than that.