You can keep cutlasses, sabers and machetes right out in the open. How about a spear gun with solid steel crossbow bolts set up to cover the companionway entrance. It's relatively simple to behead any children, or even adults, who come to beg candy or sell you local produce.
Once you put the head of one of these locals on your bowsprit, you won't be bothered again. That's the way to deal with riffraff.