It is only with the help of the Holy Spirit and submission to his leading can help us overcome temptation.
Many people think prayers solve or help but not only do we need to pray because scripture says "Watch and pray" so, we should also be conscious and watchful of the things we hear, see, talk and the people we interact with to avoid us falling victims of tempatation.