He can lie and tempt a person, but the final decision rests in your heart. In Christ, not in yourself, believers have the power of the Holy Spirit to help them resist temptation. Then the devil left him, and angels came and attended him. The angels came to help. Angels are ministering spirits who take care of Gods people.
Christians are never alone when facing temptation.
God is present and we can receive help by faith in Him when we are facing temptation. Jesus fasted 40 days. So did Moses, so did Elijah. It should consist of righteousness, peace and joy in the Holy Ghost. Moses, Elijah and Christ could fast for 40 days because they were in communion with God, and living a heavenly life.