nail somebody to the wall
nail (one) to the wall
To punish, berate, or hurt one in a very severe fashion for a wrongdoing or transgression. As one of her first orders of business, the new president has sworn to nail cyber-criminals to the wall. The boss nailed me to the wall for messing up the Jacobson account.