(3) Where in criminal proceedings, a defendant is not represented by an attorney-at-law, the court shall, before the defendant gives evidence, inform the defendant, if there is a jury, in the absence of the jury, that it is a serious offence knowingly to give false evidence.