My personal opinion that usless you are typing to get first hand material for a movie or book dealing with the inside of some foreign jails this is not a good plan. When cruising foreign waters one is the "guest" of the country whose waters one is sailing. And as a "guest" you are subject to the laws and rules and customs of that country.
And it is in your best interest if you are not happy with some rule or custom (whatever) of the host country to keep your opinion to yourself. I have watched first hand a fellow American in French Polynesia go around bad mouthing seemingly everything and everyone. A real sourpuss. However, when it came time for his visa to be renewed (which was simple, easily done and pro forma for most everyone) his renewal was denied. He was aghast, how could they say "move on" to him and he fumed up and down the quay on how poorly he was being treated. The French were happy to see such a sour person go and so were the most of the rest of us.
All in all your idea sounds like a way to lose your boat and find yourself in some very dark hole of a jail. And the Consulate of whatever country you call home unable to help because you broke laws and not accidentially.
Hope this helps,