Earlier quoted context omitted.
He's not tricked, he put the loopholes there on purpose. You can't trick an omniscient being.
Supposing you're right, then why did they put these loopholes by purpose if they're going to be discovered someday ? To play games with us maybe ? But then is that morally ok to do so ?
To play games? Perhaps, but presumably a perfect being is already perfectly happy and has no need for games. You could see it as a test for humans: only the truly devout study the laws closely enough to notice the loopholes.