This work could have adult content. If you proceed you have agreed that you are willing to see such content.
Shore leave is a time for Jim to relax, to lie back and enjoy himself. Just maybe he should have read the signs more attentively. At least Bones seems to have understood that the beach they're on is clothes-optional.
But maybe Jim is just distracted because Bones decided to go with the flow and not wear swim trunks.