Literally, “with the tail between the legs”. Compare French la queue entre les jambes.
con la coda tra le gambe