God created satan... and God also provide us with prophets and Holy Books... so it is clear that it is up to us to choose... He wants us to choose... as the verse says "I will mislead them, and I will create in them false desires..." ... He shows us the path to be chosen...
I will give you an example... you stay in a hotel... suddenly somebody knocked the door... you open the door and you see a sexy woman offering her service... she is a prostitute... and as the God's rule states... zina is not permitted... Now it is up to you whether you want to commit zina or just say no to the prostitute.
now the question... who allows the woman to come to your room and knocked the door? if God does not allow that to happen, will she be able to reach your room?
Kyas
In your above example you have shown that God controls all things, and I agree. What I vehemently disagree with is the surah which states God is
both good and bad. He may allow evil or sin, but He is NOT sin or evil. He is PURE GOODNESS, and even sin is used for good in the end.