According to Ephesians 2:2 "In which you formerly walked
according to the course of this world, according to the prince of
the power of the air, of the spirit that is now working in the sons
of disobedience." We can know that is talking about the devil
because of the phrase "the spirit that is now working in the sons
of disobedience".
Job 1:7 "The LORD said to Satan, "From where do you come?" Then
Satan answered the LORD and said, "From roaming about on the earth
and walking around on it." According to this verse, t seems that he
can move freely about on the earth.
Then there is Revelation 12:7-9 "And there was war in heaven,
Michael and his angels waging war with the dragon The dragon and
his angels waged war, and they were not strong enough, and there
was no longer a place found for them in heaven. And the great
dragon was thrown down, the serpent of old who is called the devil
and Satan, who deceives the whole world; he was thrown down to the
earth, and his angels were thrown down with him."