It is interesting to note that the question may have a formulation in the Tanach itself. In the book of Iyov, Iyov asks God:
Hast Thou eyes of flesh? or seest Thou as man seeth? (Iyov 10:4)
The Malbim (19th century) explains this verse as saying, since God is omniscient and already knows the future, man can't be held responsible for his sins.
(The Malbim himself doesn't seem to find this question particularly troubling since he resolvesmanages to resolve it with only a few words: "והאל יתברך הוא למעלה מן הזמן," God is above time.)