Most casino accounts let you set daily, weekly or monthly deposit limits, take a time-out for a set period or self-exclude. Lowering a limit usually works immediately; raising it normally takes effect only after a waiting period.
Set your limits before you start playing, not in the middle of a session.