You probably won't be able stop going to the beach......
Avoid it from 10/11 till 4 pm. The sun is higher and burns instead of giving you a nice tan that will last longer.
The best would be to go on the afternoon not before 4 pm. Always use a high level sun protection even if you have a tan and after each bath in the sea or swimming pool. And even on the shade, remember you still get a tan.....
Never go in tanning salons.......that's the worst.
Be careful any way, you won't have necessarily a skin cancer, but your skin will get old faster with brown age spots......
Be reasonable !!!!
hope I helped