The majority of mankind throughout history have been thoroughly beaten by the devil day and night. This has been so because God's way to defeat the devil has not been followed by the majority.
Here are three (3) ways to beat the devil that are stated in the bible. The first step is to surrender to God, James 4:7. When one surrenders to God they are in the position to take the next step, which is to be armed by God for war against the devil. Ephesians 6:10 - 18 tells us how to be armed. It tells us to be armed with the truth of God, righteousness in our hearts, living according to the gospel, exercising faith at all times, living in hope according to God's promises, confessing God's word in the power of the Holy Spirit and praying constantly through the Holy Spirit. When one has surrendered to God and armed for war, the third step is to fight the devil and his agents through the weapons that have been stated in Ephesians 6:10 - 18.
The result of fighting will be; the devil will flee, according to James 4:7. Therefore, put the devil to flight.