Gambling is not a sin it did not even included in the ten commandments but if you lose your work, friends, family and god due to gambling that would be a sin therefore you should able to control your gambling habit that it should be limited for fun and entertainment alone because beyond of that it will be more than a sin but a chaos that you will lost everything that you loved and cared for.