Generally, a uncoerced statement to police isn't immediately illegal, but its use in a trial is a tricky matter. The key factor is whether it was obtained legally. Police must adhere to specific procedures, including https://panchanandshaw.com/blog/costs-law-guide/