If they’re contemptible enough to do something like that, the proper response is to return their contempt by lying to them.
I was sure to do that the second time. Made sure that I thought it out before answering. The only reason I did not do that the first time is that I was caught unexpectedly and blurted out the truth.