Cooperating is the easiest way to avoid trouble.
Owning up to one's screw-ups is the second way (although you don't have to incriminate yourself either).
I’ll cooperate with any police requests that are reasonable and constitutional, anything other than that and I’m suing and filing something with the DA’s office.