This is just the basics, but anyone should be aware of it:
Budget: set it BEFORE you start gambling and stick to it.
Have a break from time to time, it is important to let your brain stop and consider.
Avoid drugs / drink as much as possible, they will make you loose some control innevitably.
Seek help if you feel you are no longer in control. Make a phone call to a friend or go out and speak with someone.
Anything else anyone can think of? Like... read this post before gambling?

What you said is valid and there are more on such topics. If one does not keep a fixed budget while gambling, does not take a gambling break, and invests more in gambling than his or her ability to accept losses, it is easier for that person to recover from gambling or quit gambling. So from the beginning you should follow these things to keep yourself under control otherwise it will become very difficult to keep control over yourself. And the person who can't control himself is unsuccessful in all cases. Because if you don't control yourself and don't live according to a rule, you can't succeed in life, whether it's gambling or anything else.