Why is exposure to X-rays injurious to health but not exposure to visible light, when both are electromagnetic waves?

X-rays are high energy radiation with high penetration power. They can easily penetrate through human tissue and bones and can damage them. Prolong exposure can mutate cells and cause genetic defects and cancer.

1