Let me start with the idea of the three heavens and the earth. Satan needs to be cast out of all four, and finally will be; but in the meanwhile, it's a continuing process. I think he's permanently cast out of the third or highest heaven except for rare events.
He can rise there only when a saint is ready to be judged. God doesn't allow Satan to rise up that far unless He knows the saint can pass the test. Thus Satan is around in the book of Job. We aren't told what happened to Satan in the end -- he doesn't get mentioned.
Satan also showed up to accuse Joshua the High Priest. God sees Joshua's dirty garments and gives him clean ones. Satan loses.
As long as anyone has spiritual sins, he's trying (perhaps without knowing it) to give Satan a foothold in the third heaven. When the saint is ready to be shown those spiritual sins so he can repent, he appears in Heaven with Satan to accuse him. When Satan loses, he's cast down again.
The third heaven is fire. The second is air, and the third (contaminated now) is water -- or the sea in Revelation. These correspond to the Seals, Trumps, and Vials in Revelation. While it's hard to see a connection between "seals" and fire, the other connections are easier since "trumpets" are heard in the air, and vials contain liquids. The movement in Revelation is downwards. First the third heaven is changed. Then the trumps sound and change things in the plane of the mind. The vials are in water -- which is feeling or emotional. When those are purified, the Power of Heaven then takes on the earth.
Satan got cast down out of fire; and resides now mostly in air -- which corresponds to the mind. Thus Paul talks about him as the prince of the air.
When the 70 went out casting out demons, again Satan lost space in heaven. I don't know which heaven he was cast out of or which heaven he was cast into, but he fell.
Luke 10:17 And the seventy returned again with joy, saying, Lord, even the devils are subject unto us through thy name.
18 And he said unto them, I beheld Satan as lightning fall from heaven.
I think Satan still had some footholds in the third heaven and got cast out -- but to be honest, I'm not sure.
Revelation shows how wickedness is defeated by being cast down from one level to a lower. So Satan is first cast out of the Third Heaven, then out of the Second Heaven, he lost his power in air -- and that leaves him only the heaven of water and the earth.
Revelation 12:12 Therefore rejoice, ye heavens, and ye that dwell in them. Woe to the inhabiters of the earth and of the sea! for the devil is come down unto you, having great wrath, because he knoweth that he hath but a short time.
Our souls exist on the level of the sea. In that way, we can be said to like fish. There's "doctrine" in what Jesus said to Peter about being a fisher of men.
So Satan, cast out of the two heavens of fire and air has to resort to trying to use "the sea." First a beast comes out of the sea. This would not be visible to mortal eyes since it's on the emotional plane of the soul. Next a beast comes up out of the earth. I think he is a physical person.
The next step is to cleanse the "sea" -- the plane or heaven of "lower waters." The action is is that of vials with liquids. It may look frightening, but it's very good. "Our Lady of Babylon" who sat on the waters is also defeated. The soul is of water if considered spiritually, and it's described that way.
Revelation 17:15 And he saith unto me, The waters which thou sawest, where the whore sitteth, are peoples, and multitudes, and nations, and tongues.
At this point, most evil spiritual forces have been cast down and defeated. Man is still not ready for the final showdown. He needs time to mature and grow strong, time to learn the truth since no one is judged for sins of ignorance. So Satan is bound in another plane -- so he can't do any harm doing the 1000 years. After men come to know the truth and are strong enough, they can be judged. People will have to make up their minds at that point. They'll have to decide, with full knowledge, who they will serve. Satan is released, and then people have to choose.
Right now, there are souls "trapped" in the waters, prisoners of the Dark Side. Those who weren't trapped that way can be resurrected before the 1000 years; those who wind up "trapped" after the 1000 years are released and judged "according to their works."
Compare this to Jonah who was in the sea. He says he was in sheol -- the grave or hell. He was too. I'd say he encountered the "beast of the water." When he remembered God, God got him out. The book of Jonah is another book that has clues it should not be interpreted in earthly terms. Jesus also compared himself to Jonah. The pattern is the same in more ways than "three days and three nights." Jesus also entered the sea and the heart of the earth -- before coming back. The biggest difference may be that Jonah's physical body didn't die while Jesus' did. That is because Jonah couldn't defeat death. That job had to wait. Jesus did some preaching between the crucifixion and resurrection.
We are not told when "bodies" came out of their graves, but we're told them did following his crucifixion. This was not their physical bodies however. It was their emotional bodies which had been trapped in the earth -- sleeping. They could be seen by the righteous. Prior to Jesus, part of man's soul could be trapped after death. It's meant to be raised in the resurrection and united with man's others parts. This was what the witch of Endor could summon. She said she saw it rising up out of the earth. She should have left it sleeping. Some say it wan't Samuel, but the text says it was.
Great confusion has arisen over how souls slept before Jesus' day. People believe that just because souls went to sleep then, that's the way souls today must do. It tends to confuse many. Some even say all souls before Jesus' day went to sleep. That is not so, since Jesus said Abraham, Isaac and Jacob were alive; and Elijah and Moses showed up at the transfiguration. They get misled by:
Ecclesiastes 3:19 For that which befalleth the sons of men befalleth beasts; even one thing befalleth them: as the one dieth, so dieth the other; yea, they have all one breath; so that a man hath no preeminence above a beast: for all is vanity.
20 All go unto one place; all are of the dust, and all turn to dust again.
21 Who knoweth the spirit of man that goeth upward, and the spirit of the beast that goeth downward to the earth?
Who knows? The man who knows will do the right thing. The man who does not know is no better than the beast. The "soul" of man is like that of the beast -- unless the breath of life has been breathed into it. In Genesis, the animals are said to have soul; but man is said to be a "living soul" after the breath of life.
Jesus said something that refers to the four parts of man that correspond to fire, air, water and earth.
Mark 12:30 And thou shalt love the Lord thy God with all thy heart <fire>, and with all thy soul <water>, and with all thy mind<air>, and with all thy strength<earth>: this is the first commandment.
Moses said only heart, soul, and strength. I think the reason is what the words mean in different languages. Soul can include the mind as well as the emotional part of man, depending on who's using the word.
I think my views also explain what Paul said about battling wickedness in high places. Each saint help cast down Satan by removing some of the places he has to stand. Every saint who finds his own salvation has also helped cleanse the heavens.