Upon the trial of any indictment the prisoner may be convicted of the crime charged therein or of a less degree of the same crime, or of an attempt to commit the crime so charged, or of an attempt to commit a less degree of the same crime.
N.C. Gen. Stat. § 15-170