There was a question to ask that gives you the answer. I don't remember what it was.If the liar only lies, then just ask one guard if the other guard would say the first door is safe. It guarantees the response will be wrong since it goes through both guards.