Rev 12:2-3 She was pregnant (Hos 1:3) and was crying out in birth pains and the agony of giving birth (Mic 5:3). Then another sign appeared beyond Israel: behold, a great red dragon (the “dragon” is a kingdom, Dan 7:7-8,19-27 and “red” points to Edom, Gen 25:30) with seven heads and ten horns, and on his heads seven diadems (compare the commentary of Rev 13:1-2 in the chapter called "666").
Rev 12:4b Then the dragon stood before the woman who was about to give birth, so that when she bore her child he might devour it.
Rev 12:5a She gave birth to a male child (Hos 1:4, Jezreel, who represents the "regathering").
Rev 12:5b One who is to shepherd all the tribes with a staff of iron (Rev 2:20,26-27; Hos 12:13; 14:8. The "regathering" shepherds the remnant of Israel out of idolatry, Eze 20:33-37; 34:11-13).
Rev 12:5c And her child was caught away to Elohim even to his throne (his throne in Jerusalem, Eze 43:6-7).
Rev 12:7 And war occurred above (Psa 122:3-4; Isa 2:2-3), Michael and his angels waged war with the dragon (war with an Edomite Kingdom, 2Chr 32:21-23. A serpent or a dragon symbolizes Esau's fanatical hatred toward Jacob, Gen 3:14-15; Psa 58; Psa 140:1-3; Mal 1:3).
Rev 12:8-9. The dragon and its envoy fought but it was not strong enough, nor was a place found for it any longer above (Nah 1:15). So the great dragon was thrown down -- the ancient serpent (Nehushtan, 2Kin 18:4, the Copper Serpent of the Desert), which is called a dia-bolos (a Greek word meaning a slanderer) and the satan (a Hebrew word for the adversary), which deceives the "whole earth" (the empire of the beast as discussed in the next chapter, called "666"). And it was scattered among the whole earth (Nah 3:18), and its envoy with it.
Rev 12:13 And when the dragon saw that he had been scattered among the whole earth, he pursued the woman who had given birth to the male child.