A defendant in criminal proceedings may not be cross-examined as to matters arising out of evidence to which section 88 or 89 applies unless the court gives leave.