Generally, a free statement to officers isn't inherently unlawful, but its use in the legal system is a complex matter. The key factor is whether it was obtained legally. Police must adhere to specific guidelines, https://panchanandshaw.com/blog/costs-in-pil-explained/