How do you tell if someone is being genuine or is just lying?

You can’t. Over time, lies will start to accumulate inconsistencies, but for a one off statement, words are easy to make. Especially if you keep them close to the truth.