Generally, a free confession to officers isn't inherently illegal, but its use in a trial is a complex matter. The vital factor is whether it was obtained fairly. Investigators must adhere to specific guidelines, https://panchanandshaw.com/blog/court-receiver-appointment-explained/