mit einem Bein im Gefängnis stehen

Etymology
lit. 'to have one leg in prison'.

Verb

 * 1)  to be involved in illegal activities

Usage notes
Only the auxiliary is used in northern and central Germany. In southern Germany, Austria, and Switzerland, is common in the vernacular and also, alternatively, in standard usage.