Thank you for doing that. We can thank a child for being responsible, for being respectful, for cooperating. A child's obedience should not be taken for granted. For children who choose to defy their parents. The parents must take over.
All children try it at least sometimes.
Some children seem to spend their entire childhood testing all the boundaries. Stage III may be a constant state for parents of such a child. First, parents specify exactly what will happen for non-compliance. Then the child is given a last opportunity to act. If the child fails to do what is expected, enforce the consequences.