That's certainly one interpretation of it, and a pretty reasonable one. However, I typically interpret it as "if the police think you've committed a crime, you are going to jail and almost nothing is going to stop that." In that incredibly famous "Don't Talk to the Police" talk[0], the attorney asks the former-cop-turned-law-student if he's every been convinced not to arrest someone based on what the suspect said. Not a single time in his entire law enforcement career.
This is also sort of the crux of the talk - if nothing you can say will convince the police not to arrest you, and things you do say can make things worse, your best bet is to just shut up and talk to an attorney if it gets to that point.
I think we're all agreeing here. "You can't beat the ride" means that if the cops want to arrest you, lock you up, etc., you can't do anything about it. Doesn't matter if you're guilty, innocent, or just a random bystander, you're not going to stop them from taking you and doing whatever they want in the process.
This is also sort of the crux of the talk - if nothing you can say will convince the police not to arrest you, and things you do say can make things worse, your best bet is to just shut up and talk to an attorney if it gets to that point.
[0] https://www.youtube.com/watch?v=d-7o9xYp7eE