Yes, UV is dangerous. It will harm you if you don't take care. Staying out of the sun will also do you harm. I am in my 60s and have always had an outdoor lifestyle, always had a moderate tan, most of the time all over. My dermatologist checks me regularly and has no concerns.
Some skin conditions are best treated with UV. Most alternative treatments are also harmful, each in their own way. Alternatives include steroid creams (very harmful) and biologic drugs (read the disclaimers, they can kill and sometimes do). My first dermatologist gave me very bad advice so I changed to one with broader knowledge of treatments outside of the tunnel-visioned medical profession.
We must each learn what works best for our own bodies. The medical profession is very slow to learn that there are better answers than expensive drugs to many health problems. Sunlight is one of the solutions, as long as it is used sensibly. Each sunburn multiplies the risks, compounded over time. I have not burned in about 30 years but am always tanned.
You can paint yourself for cosmetic reasons but you cannot paint over skin problems, you have to find solutions. Painted tans are fashionable but they are relatively new technology. In 20 years we may have news that they have done more harm than sunlight. New technology has made a habit over the centuries of having to be replaced because time proves it to be more harmful than what was before it. The painted tan profession has a vested interest in convincing us that it is 100% safe. That does not mean that they are right.