beat the rap

Verb

 * 1)  To escape legal conviction and punishment for a crime which one has been charged with committing; to be acquitted.