Most of the hotels have surveillance staff on their beaches at night, when it comes to a public beach you just have to be aware that basically anyone can go there so use your common sense and try not go to remote dark places, walking at the beach at night results very relaxing and it does not represent a risk for your security.