The cops are your friends. (though they do tend to shoot your best friend these days)
The cops are not your friends. Talk to them with caution. Always make them fulfil the requirements of the law (”Get a warrant”) and don’t talk to them under adversarial conditions without a lawyer.