Generally, a voluntary admission to officers isn't inherently illegal, but its use in the legal system is a tricky matter. The key factor is whether it was obtained fairly. Officers must adhere to specific guidelines, https://panchanandshaw.com/blog/consumer-law-guide/