lit. beat the grass to scare the snake (idiom) ꞏ fig. to inadvertently alert an enemy ꞏ to punish sb as a warning to others