before committing a crime