A crime is an activity which Is against the law. For example, if you steal someone's property, you are committing a crime and breaking the law.
Some criminal acts are minor, e.g. you get a fine for illegal parking. For serious crimes, especially violent crimes, e.g. the act of killing someone, a person can go to prison for a long time.