The Photoelectric effect states that if light with high enough frequency hits some matter, that matter will emit electrons. If you increase the intensity of light, more electrons will be emitted, but the kinetic energy of individual electrons will remain the same. However, if you increase its frequency, the same amount of electrons will be emitted, but individual electrons will have higher kinetic energy.
If that is the case, then why are higher frequencies more destructive than lower frequencies? For example, being exposed to UV light has fairly low consequences on the human body, but if we're exposed to x-rays for even a few moments, we have to wear protection. If frequency really has no effect on the number of electrons being emitted, shouldn't those two radiations be equally harmful?