This is exactly why children abandon their parents when they grow older. Imposing life to possibly experience suffering not enough still want to inflict the suffering firsthand. There are better way to teach children than using beatings, if you have to resort to beatings then you have already lost your reasoning rights.