Revelation 17:17 For God hath put in their hearts to fulfill his will, and to agree, and give their kingdom unto the beast, until the words of God shall be fulfilled.
This verse demonstrates that God can put things in peoples hearts so that they do what He wants them to do, without destroying their will: for we see that they do not just give their kingdom unto the beast but agree. And also that God can sinlessly put it in the heart of man to sin: for the beast is an enemy of God:
Revelation 20:10 And the devil that deceived them was cast into the lake of fire and brimstone, where the beast and the false prophet are, and shall be tormented day and night for ever and ever.
And we say that their union with the beast is not just union together, but union against the Christ:
Revelation 19:19 And I saw the beast, and the kings of the earth, and their armies, gathered together to make war against him that sat on the horse, and against his army.
11And I saw heaven opened, and behold a white horse; and he that sat upon him was called Faithful and True, and in righteousness he doth judge and make war. 12His eyes were as a flame of fire, and on his head were many crowns; and he had a name written, that no man knew, but he himself. 13And he was clothed with a vesture dipped in blood: and his name is called The Word of God.
It is by union with the beast that kings will be destroyed, and yet it is God who put it in their heart to agree and give their kingdom to the beast. Will someone ask how God can set them up for destruction and then destroy them? The answer is that God is the Creator: He can do whatever he pleases with his creation. For it is written:
Proverbs 16:4 The LORD hath made all things for himself: yea, even the wicked for the day of evil.