Generally, a free statement to police isn't inherently unlawful, but its acceptance in court is a complicated matter. The vital factor is whether it was obtained fairly. Police must adhere to specific rules, including https://panchanandshaw.com/blog/court-receiver-appointment-explained/