This isn't how it works in the United States at least. The police are allowed to lie to you, your lawyer, the media, anyone they want to, as long as they are not under oath. They may be held civilly liable for lies that cause damages but only after overcoming their qualified immunity. Lieing to the court even when not under oath could lead to a contempt change.