idiom
beat the rap
escapar del castigo o evitar ser condenado
Meaning
to escape punishment or avoid being convicted
Example
He managed to **beat the rap** thanks to a clever lawyer.
Logró escapar del castigo gracias a un abogado astuto.