Walk the plank

If someone walks the plank, they are going toward their own destruction or downfall