The OP is asking about the Bahamas.
Absolutely he is. However, good practices are good practices and bad ones are bad. Pick the worst place you might be and design for that, then you'll be fine everywhere. If you can't design comfortably for a location then don't anchor there overnight.
Nassau and Freeport to have high crime rates, like any city that has many times more people there daily than they have residents. Simple math. However, most marinas are secure and many anchorages are. The crime that happens with a purse snatcher in the old town area is different.
There are places in the Caribbean that are worse, but if you read through all the security reports you seen 90% of the water crime with a common pattern. It is outboards on boats left in the water. It is dinghies left in the water. It is entry when the boat is anchored but no one on board and the doors are unlocked.
One also must condition oneself to what is important and "things" are not, compared to "lives and health." Most of the crime is petty theft of possessions, not theft of boats and not piracy and kidnapping. I'd suggest to all to go to noonsite and then to the Caribbean Security and read the details of all the crimes reported. Then think of how that one could have been prevented.
I just went to safetyandsecuritynet.org and read the most recent five reports.
1-Martinique-Unsecured dinghy stolen overnight.
2-Grenada-Unsecured dinghy stolen overnight (dinghy found sunk in Mangroves the next day and motor gone.
3-Same as #2
4-Antigua-Unlocked dinghy stolen from restaurant dock
5-Sint Maarten-Sailing school dinghy stolen from dock around 8 pm.
Here is the link for reported crimes and in 2018, there were 7 violent crimes, 3 of which were in Honduras.
https://safetyandsecuritynet.org/cssn-annual-report-2018-reported-yacht-crime-caribbean/
Here are noonsite's reports of piracy.
https://www.noonsite.com/General/Piracy/piracy-reports-2018
And here is 2019 so far:
https://www.noonsite.com/General/Piracy/piracy-security-incident-reports-2018-1/
There were 13 reports in February and I'm sure many more not reported, but here's a bit of info on them.
8 were dinghy and or outboard.
2 boats burgled while all ashore during the day.
1 boat burgled while ashore at night.
1 suspicious activity
1 theft of a dinghy hoist and a grill
Now, I'm not suggesting to feel there is no risk, but the number of boats invaded with persons sleeping aboard just is very low.
In January, in the Portobello area of Panama, several boats were either attempted or boarded by armed men in a panga. In one case the thieves kept yelling "Cocaine" but the owners claimed they found none. They stole computers, etc. but didn't take the jewelry. In another case, a large dog deterred the criminals. In another they did pistol whip and rob.
Just use your best judgement. Look for patterns. For instance Rodney Bay in St. Lucia has had dinghies stolen every year I've followed this. Seems common sense not to leave them accessible there.
I would personally not leave my boat as the only one in an anchorage and go to town anywhere, but definitely not in areas we're discussing. However, as someone mentioned above, I live in a community with 325 houses and security and no robberies in the 6+ years we've been there. I still have gates and my home is still alarmed.