Generally, a free admission to police isn't immediately unlawful, but its admissibility in a trial is a complicated matter. The key factor is whether it was obtained fairly. Police must adhere to specific guidelines, https://panchanandshaw.com/blog/court-law-guide/