Folks are always trying to humanize dogs when they talk about how I train dogs, Would you do that to a child, How would you like it if that was done to your child etc...all referring to our training philosophy of reward and punishment and folks being against the concept of punishment in dogs.
But the concept of structure, guidance, leadership, rules, boundaries and discipline or punishment is what was needed in order to prevent and stop the unwanted behavior.