Satan has to abide by God’s rules in that he is under God’s control. Satan’s interactions with God, described in Job 1 and 2, demonstrate that he cannot do whatever he wants to do. Satan can do only what God, in his wisdom, allows.
Revelation 20:3 provides more detail on God’s control of Satan in the “short time” before the Last Day. Revelation 20:10 previews what finally awaits Satan.