A witness who is giving evidence relating to an application for a * restraining order is not required to answer a question or produce a document if the court is satisfied that the answer or document may prejudice the investigation of, or the prosecution of a person for, an offence.