In a guilty plea case involving a juvenile accused aged between 7 and 14 years, a trial court commits a misdirection if it fails to canvass the issue of criminal capacity through appropriate questioning of the accused. The court cannot rely on inferential reasoning drawn from the nature, cunning, or repetitive character of the conduct to conclude that the presumption of doli incapax has been rebutted. The magistrate must pose specific questions to establish that the accused admits: (1) awareness that the conduct was morally wrong and/or against the law and punishable (cognitive element), and (2) possession of self-control and ability to resist the temptation to behave in that manner (conative element). Failure to do so, particularly where the accused is unrepresented and the Probation Officer's report suggests lack of capacity, renders the conviction not in accordance with real and substantial justice. The presumption of doli incapax is fundamental, and in its absence of proper enquiry to rebut it, there is nothing to establish criminal capacity attending the apparently wrongful conduct.