No, you will not get banned for CSGO gambling. The thing is, Counter-Strike: Global Offensive is a separate game that runs on the Steam client. On the other hand, gambling platforms or gambling sites for CSGO are third-party platforms that do not have any links with the game in any way. The only thing that the CSGO gambling platforms require from you is that you either make deposits using cash for betting on CSGO events or that you make deposits using your CSGO skins to play gambling games. Since there are no links with the game and gambling platforms, there is no chance of you getting banned from the game after playing some gambling games using your CSGO skins.
While getting banned after gambling on CSGO is highly unlikely, there is a possibility that you get scammed while gambling, which is a problem much more serious than getting banned. There are many reports of people getting scammed and losing their CSGO skins at a scam site after they accidentally ran into one. However, there are ways that you can avoid scam sites. You will have to carefully check user reviews of the platform you are about to use and also figure out if they are legitimate or not, which is a time-consuming process. If you are looking to save time, you can check out our list of the best CSGO gambling sites, where we have included only the top CSGO betting sites after testing each one out ourselves.