Diatomaceous earth can also be contaminated with heavy metals especially aluminum. So that is why it should only be taken if it is food grade so it is more likely to be tested for them.
The high silica content of diatomaceous earth can prevent the contaminating aluminum from being able to be absorbed but make sure not to have a slow bowel transit time or you increase your chances of absorbing the contaminates.
Indeed as we say it is VERY IMPORTANT that it be food grade DE!