Goal: What rule should I live by, if I go to a casino?

Which of the following methods is more reasonable for accomplishing this goal?
Don't always only predetermine the amount you want to lose (that's ok) but also indicate to others and yourself, the amount that it is ok to win, and you won't keep gambling.