I’ve caused it, although approx 15 years ago when I was in Cuba for a month.
First time, an obviously dodgy couple in Havana approached me at night shortly after I arrived. I will usually be friendly and talk with anyone without prejudice. I enjoy talking to grifters and operators, and I will happily pretend to be a victim when it amuses me to do so if I only risk a few dollars. I have travelled enough to be somewhat careful and how to look after myself; I speak conversational Spanish which helps; and I am a white New Zealander which often avoids trouble, and it honestly also helps get out of trouble. Police took the couple away shortly after I started talking with them, and I was very concerned. However I managed to track down the relevant police station. A tourist hanging in police station for hours probably caused the police some hassle (they hard out lied and tried to deceive me, but I wasn’t deterred), so eventually the couple were released at about 4AM, and I was able to find out what happened. He was pimping her (absolutely not my scene), and they had been fined about USD4 which I just gave them. I think normal salary was USD5 per week, so they would have taken ages to pay it.
After that hideous experience in Havana, I decided to go to one of the gated touristy beach areas where I presumed every local was vetted. I did speak with locals, but avoided anyone that I thought was dodgy. But apparently one guy was arrested for talking to foreigners, which had included me, although he just wanted to practice English as far as I know (I never had a reason to suspect him of a darker ulterior motive). His friends said there was nothing I could do to help and that it wasn’t a big issue (maybe just par for the course, normal life), but I felt really helpless.
Another time a woman told me to pay a cop USD5 or else the cop would rape her. It didn’t feel like a scam on her part, she was truely scared, and I certainly wasn’t willing to risk anything so I paid the extortion. I think my only fault in that case was being a tourist. I probably should have reported the officer, but I was too surprised at the time to notice any ID, and even now I am unsure if there would have been retribution on her.
I suspect that if a tourist only speaks English, they might be less likely to cause trouble, and they are less likely to be aware of any trouble they cause. Being in ones own tourist bubble is a normal thing for tourists, and is often encouraged (everyone has the incentive for tourists to enjoy themselves and spend money), and it is often difficult for tourists to interact with locals in any meaningful manner (especially given that in a poor country a tourist is often relatively a millionaire, and often in tourist areas).
I am sure Cuba has changed, but I am also sure that the same authoritarian structures are still in place.
Overall, Cuba was the worst country I have ever been to for a feeling of hopeless authoritarianism. As a tourist I felt mostly untouchable, but the grind of the people living there was horrific (warning, politics: I do blame the US blockade for a large part of that, especially because I think it helped Castro stay in power). I have other friends that loved travelling there, so YMMV.