下马威 comes from the practice of officials who, upon dismounting from their horse (
下马) when entering their new jurisdiction, would immediately issue a harsh punishment to establish their authority (
威). The phrase captures this dramatic first impression of power.