If you decide to gamble, you should keep a record of how much money and time you spend on gambling daily. Studies show that gamblers lose track of how much time and money they spend on gambling.
It is hard to actually keep track because like I said, once you start gambling you don't have much idea about what you are doing. It's like consuming alcohol and avoiding getting dizzy

.
But yeah if you can, having a written record of the money you are spending helps you restrict it. Still, I feel everything may go as expected and might seem like everything under control until you are not addicted but once you become addicted to gambling then everything may start looking like complete different.