Sounds like someone has issues with the law.
Actually, asking the police for legal advice is a very bad idea and that has nothing to do with "having issues with the law". Cops are not lawyers and very few of them know even 5% of the laws in their state. Asking a cop for legal advice is a very bad idea.
And yes....COPS CAN LIE TO YOU (or simply unintentionally give you false information) and YES.....they can then turn around and arrest you for doing what they suggested. Those are facts and have nothing to do with "having issues with the law".
And yes, I DO have issues with a lot of laws and no....I don't trust cops. Most of the cops I have known (including 2 brothers-in-law) were idiots and broke more laws than they enforced.
When you need legal advice, you ask a lawyer, not a cop.