There are several ways to prevent the harmful effects of X-rays:
Minimize unnecessary exposure to radiation using safety measures
Using the lowest dose of radiation
Managing the frequency of X-ray examinations