Take your credit cards and put them in a safe place in your home, not in your wallet where it’s easy to spend them.
If you argue that you need it for “emergencies,” just be sure to keep a small amount of cash hidden in your wallet for these emergencies.
Don’t keep plastic on you until you have the willpower to not use it even when you’re sorely tempted.