this should be an example for influencers and celebrities to always check the kinds of things they are paid to endorse if they do not want to get in trouble
Well, the "influencers and celebrities" are not exempt from the obligation to comply with the laws of the country they are in. And before promoting any websites, they should check the legality of the activities of those whose services the youtubers are going to advertise.
I don't know what the youtubers are guided by, because all their activities are publicly available and the slightest violation of legal norms immediately becomes known.
if you are an influencer, would you promote gambling on your page?
Don't have to be "influencers and celebrities" to do this. Look at the signatures of the participants of this forum and you will find an answer to your question in almost everyone.