ir por lana y volver trasquilado

Etymology
lit. 'go for wool and come back shorn/sheared'.

Verb

 * 1)  to backfire
 * 2)  hoist by one's own petard
 * 3)  to get more than one bargained for
 * 1)  to get more than one bargained for