As human beings, we are all tempted in various ways and circumstances. We cannot always prevent temptations, but we can prevent ourselves from willful sins.
In the Gospels, we see Jesus tempted by the devil in the wilderness, yet instead of yielding to the temptation, He confronts the devil using God's Word. That is what all God's children must do when tempted.
For example, anger can be a temptation. Being angry is not a sin, but reacting to it in an ungodly manner is a sin. When you get angry because of other people's faults, you must not hastily react to it by throwing harsh words on them or beating them up, but exercise self-control, be still and seek God's help to forgive and forget.
Ephesians 4:26
“Be ye angry, and sin not: let not the sun go down upon your wrath.”
Psalm 4:4
KJV Version:
"Stand in awe, and sin not: commune with your own heart upon your bed, and be still. Selah."
NKJV Version:
"Be angry, and do not sin. Meditate within your heart on your bed, and be still. Selah"
For instance, let's say that you are a chocolate lover and you want to avoid chocolates and deserts to stay healthy. When you accidentally see a poster with your favourite chocolate or dessert, you get tempted to eat it. Now, accidentally seeing that poster is not your fault. But, after seeing it, you should divert your attention away from it and walk away. Instead of walking away, if you get into the desert shop and eat the chocolates and desserts, it is your fault.
Conclusion: Temptation is not sinning, but yielding to it is.
This Post: Difference between Temptation and Sin?
Other posts you may be interested in:
Coping with Loss
Living above Circumstances
True Freedom
Getting rid of Fear of Future
Handling bitterness with unfair people
Replacing "Why me Lord?" with "What next Lord?"
Psalms for your Spiritual Battles
When God redirects your path!
Are You Waiting for God or Is God Waiting for You?
Worship as a Way of Life