When you look at the EM spectrum, UV waves are quite a bit smaller in wavelength than infrared, and x-rays/gamma rays are even smaller. Therefore, UV waves are probably causing more harm than infrared waves, and x-rays/gamma rays are probably doing even more damage.