The general rule is that no criminal prosecution may be restrained or stayed by any injunctive writ, preliminary or final. Public interest requires that criminal acts be immediately investigated and prosecuted for the protection of the society.
See exceptions here.