Gods Foreknowledge
First of all, Allah has confirmed that we have free will and He is not forcing anyone to do anything even if He knows. Even if one doesn’t understand that, you gonna have to accept what God Himself has told us. And truth be told, while man can make up arguments but deep down, he knows he has free will, otherwise our courts would be empty. Secondly, just because He knows something, doesn’t mean it becomes a law or something. He is simply a witness to everything. Just because I saw you commit a crime or that I knew that you were going to commit a crime, does not mean I am somehow the one who made you commit the crime.. That’s illogical and an irrational leap in logic. So Allah is only a witness to our actions. And has knowledge because He needs to run the whole universe according to His plan, of course He needs to know the limits of our actions, otherwise it would be chaos. But He knows the moral choices we will make, He’s not the one making those ones for us. The only things He has chosen for us are some things like where we will be born, what we will look like etc.And whenever He takes control away from us in any situation, the accountability is also lifted for that moment.
It is not that God created humans and destined it to do evil rather humans have capabilities of evil. Just like how they have capabilities of doing good. Now, between the good and the bad man is given a free will.