There are many ways to go about responding to this argument. It was something that was tackled by many people over the past 2000 years. Personally, I think that the main problem is the fact that you expect God to answer the question.
The fact that God knows exactly what you're going to do in those 5 minutes is enough to negate free will, how does him deciding not to tell you affect that?
Also, if we talk about a specific God, the Christian God has done this in the past:
But Peter said unto him, Although all shall be offended, yet will not I. And Jesus saith unto him, Verily I say unto thee, That this day, even in this night, before the **** crow twice, thou shalt deny me thrice.
Could Peter have avoided denying Christ thrice before the **** crowed?