Such laws are enforced somewhat sporadically and randomly, but with tourists they may be enforced as a way of enticing a payment of a 'fine' in lieu of being formally charged. Not worth the risk of facing that situation. Keep it out of highly public view and off the beach. In your hotel is fine.