meter os pés pelas mãos

Etymology
lit. 'to put the feet through the hands'.

Verb

 * 1)  to mess up, to fuck up to make a mistake, to go wrong