it is a crime to lie to to an officer pursuing an investigation. If he is investigating a fight at a bar, and asks if you were there, don't lie.
If he asks if you are armed, don't lie. If he asks where you were at the park 2 years ago, and he is investigating an armed robbery that happened last...