Well, that escalated quickly.
...Yeah, I think I get what the author was trying to do but they fumbled it so badly XD Luckily it's fiction, and thus no permanent trauma shall be had. The child will thus not start to conclude that their parent will only love them if they're perfectly obedient, nor worry for the next five years about whether abandonment is a possible outcome for not eating their vegetables, as an actual child might.