It's wrong to confine people.
John finds a neighbor boy snooping through his garage one day after coming home from work.
John wants to punish the boy for going through his things.
John demands the boy tell him who he is and then calls the boy's parents to tell them what he did.
John locks the boy in the garage for the rest of the night so that he will learn his lesson.
The boy is happy John didn't hurt him and learns his lesson about snooping through other people's things.
The boy is terrified and is stressed out completely from being trapped in the garage.