Sections 939.22 to 939.25 apply only to crimes defined in chs. 939 to 951. Other sections in ch. 939 apply to crimes defined in other chapters of the statutes as well as to those defined in chs. 939 to 951.