Since Satan is our avowed enemy, and he is always bent on leading us astray, we cannot guard ourselves against him, unless we are extremely vigilant. It is not different from walking in a jungle full of prickly thorns, hard rocks, and dangerous pits: we cannot escape unscathed without extreme caution. Here are a few tips to follow, which should--insha Allah--help us in our efforts to save ourselves from sins:
1) You need to motivate yourself by visualizing clearly the pain and dire consequences of sins you wish to shun. Do this by listing the consequences of sins, including the eternal torments in hell-fire. List the dire consequences and fix them in your mind so vividly so that you are forced to change your association of sins with pleasure; hence no sooner you think of a sin, all you imagine is pure pain and suffering;