I do not think Google penalizes gambling content on nongambling sites, only because it is a gambling content. Gambling ads are normal even in adsense in some countries.
What maybe Google might consider (and you too), is possible complete irrelevance of the ads. You should have clean answer why should graphics, articles, software, an art gallery, my own music, and much more site be ideal website for gambling ads. Not only because of Google but also because of your visitors and because of the yields. For me it looks like a putting ad for penis extension pump on gambling portal page.
I do not say it is a nonsense for sure, but it should be your concern. If you have an art gallery with roulete widget, it might simply harm your traffic, bounce rates and then even SERP. It is up to you to test it.
If you talk to God, you are praying; If God talks to you, you have schizophrenia.