Constant practice of good oral hygiene is one effective way to prevent cavities and infection in your third molar. Also, regular dental check-ups are advisable to prevent the worsening of impacted wisdom teeth.