What does "commit" mean here?

Native speaker’s answer
Rebecca
In this context, to "commit" means to perpetuate or carry out an action. In this kind of situation, it always refers to a negative thing - an action, a crime, or a mistake. Ex: He committed the crime of robbery. Ex: The man committed a crime and was sentenced to ten years in prison.