Jehovah apparently chose not to foresee what Adam ​ — and Eve — ​ would do, even though He has the ability to know everything in advance. It is therefore a question, not of whether Jehovah can foresee the future, but of whether he chooses to do so.
لِذلِكَ لَيْسَ يَهْوَه هُوَ ٱلْمَلُومَ عَلَى عَوَاقِبِ خَطِيَّةِ ٱلْبَشَرِ ،‏ إِذْ إِنَّ ٱلنَّتَائِجَ ٱلْمَأْسَاوِيَّةَ ٱلَّتِي نَحْصُدُهَا نَحْنُ ٱلْيَوْمَ نَاجِمَةٌ عَنْ عِصْيَانِ آدَمَ .‏