Carry as little as possible with you, and keep it secured. Keep bags zipped and tight around your shoulders. Avoid carrying money or items in your pockets. Don't pull out large amounts of cash or credit cards.
Do not walk around in Puerto Rico by yourself. Stay with a friend or a group of friends. Be particularly cautious at night.
Limit your travels to tourist areas. If you want to explore parts of Puerto Rico that are not typically tourist destinations, do so with a travel group.