I think that in mid-trib theory, the locusts that hurt men for five months with the stings of their tails come upon the earth before the rapture happens.
I have heard some pastors say that this would make God like a wife-beater if the church is going to be on the earth at that time.
The locusts judgement is for those who don't have the seal of God in their foreheads, not God's people.
Revelation 9
[1] And the fifth angel sounded, and I saw a star fall from heaven unto the earth: and to him was given the key of the bottomless pit.
[2] And he opened the bottomless pit; and there arose a smoke out of the pit, as the smoke of a great furnace; and the sun and the air were darkened by reason of the smoke of the pit.
[3] And there came out of the smoke locusts upon the earth: and unto them was given power, as the scorpions of the earth have power.
[4] And it was commanded them that they should not hurt the grass of the earth, neither any green thing, neither any tree; but only those men which have not the seal of God in their foreheads.
[5] And to them it was given that they should not kill them, but that they should be tormented five months: and their torment was as the torment of a scorpion, when he striketh a man.
Please notice the parallel of the Revelation judgements with God's judgements on Pharaoh and the Egyptian kingdom. God protected his people.
Exodus 9
[1] Then the LORD said unto Moses, Go in unto Pharaoh, and tell him, Thus saith the LORD God of the Hebrews, Let my people go, that they may serve me.
[2] For if thou refuse to let them go, and wilt hold them still,
[3] Behold, the hand of the LORD is upon thy cattle which is in the field, upon the horses, upon the asses, upon the camels, upon the oxen, and upon the sheep: there shall be a very grievous murrain.
[4] And the LORD shall sever between the cattle of Israel and the cattle of Egypt: and there shall nothing die of all that is the children's of Israel.
[5] And the LORD appointed a set time, saying, To morrow the LORD shall do this thing in the land.
[6] And the LORD did that thing on the morrow, and all the cattle of Egypt died: but of the cattle of the children of Israel died not one.