This Is a difficult situation. It would be difficult for lawyers to advise you on the above facts on an internet forum especially because the matter involves confidentiality and the lawyers advice will be on record. You are advised to approach a lawyer in person and then ask him the following.
In my opinion as far as I can say on this platform you are obviously trapped in an extreme tricky situation. However strictly going by the language of the questions (if that is the exact language) then i guess you have nothing to fear unless you were arrested or detained. Merely being prosecuted under the provisions will not amount to detention and/or arrest.