Some expositors find an allusion to the fallen angels (Jud 1:6).
Did cast them to the earth
Compare Dan 8:10.
To devour her child as soon as it was born (ἵνα ὅταν τέκῃ τὸ τέκνον αὐτῆς καταφάγῃ)
Rev., more literally, that when she was delivered he might devour her child. Professor Milligan says: “In these words we have the dragon doing what Pharaoh did to Israel (Exo 1:15-22), and again and again, in the Psalms and the Prophets, Pharaoh is spoken of as the dragon (Psa 74:13; Isa 27:1; Isa 51:9; Eze 29:3). Nor is it without interest to remember that Pharaoh's crown was wreathed with a dragon (the asp or serpent of Egypt), and that just as the eagle was the ensign of Rome, so the dragon was that of Egypt. Hence the significance of Moses' rod being turned into a serpent.”