It's illegal to run a scam casino everywhere in the world and it's universal rule lmao. Even if casinos were legal in a country doesn't mean scam casinos are legal. So technically, a scam casino is illegal everywhere but a legit casino will be illegal or legal depending on the jurisdiction of the country.
I think a licensed casino is assumed to have met the right standards required for casinos to be registered in any country. Such licensed casino could even go as far as following the best standards available outside of the host country's required standards.
And there is the possibility of a casino that meets the required host country's standards going below the standards or avoiding best practices... that could be considered a scam. So it's possible that licensed scam casino will exist if regulators are not doing very good job.