The way you avoid everything which can harm your body similarly protect yourself from sin because it harms your eman/faith.