My strategy is to have less than $100 available in the account connected with my debit card. If I need more for some reason I can just transfer on the spot.
This also makes me more aware of my spending, since I need to manually keep topping up the account.