I've had five skin cancers carved off and while I'm a Celt who grew up in California, they didn't pop up until I unknowingly drank high arsenic water for a year. Then I got them all 2-3 years later. Basal cell cancers are almost always benign and slow growing whereas squamous cell are worse and melanomas even worse. By the time my outdoorsy cousin Gary was my age, he'd been dead for 12 years from a melanoma.
I've got a good derm guy locally, a national expert I go to see every few years, I know rather a lot of doctors (cause I sleep with one) and toxicologists (I'm an environmental engineer). A few thoughts:
Everyone talks about sunscreen but we're no longer sure how good an idea that is. Yes, it prevents sunburn. And vitamin D. It's very unclear about skin cancer. Hats - good. Long sleeves - good. The expert I see says, "Roof, hat, sunscreen." You can do "roof" even while outdoors. Stay in the shady spot on the beach. Stand behind the tree inside of in front of it, etc.
Most cancers are a complicated interplay of genetics and environment. Environment includes sun, chemicals, diet, rest, disease, etc. Be healthy, exercise, keep your weight down, eat your vegetables, minimal saturated fat - all those steps improve your outcomes regarding cardiac, cancer, and cognitive function. And your dating chances.
Some cancers seem to go by a "multi-hit" model. Genetics had to be tweaked (UV, cosmic ray, bad genes, toxic exposure) for a cell to rapidly grow. It had to be further tweaked to avoid programmed cell death. For me, perhaps, the sun may have mutated millions of cells. Then arsenic mutated thousands more in a different way. And perhaps the overlap was 5 cells that took off in a cancerous direction.
Still, we all have to die of something and if we stay home and do nothing, we'll either die of boredom or get depressed and shoot ourselves, so it's all a balancing act of risks and rewards.