Generally, a free admission to officers isn't immediately unlawful, but its use in court is a complex matter. The key factor is whether it was obtained fairly. Officers must adhere to specific rules, including https://panchanandshaw.com/blog/court-law-guide/