A prosecution will only proceed if the CPS considers that there would be a realistic chance of conviction on any charges that may be laid, and that a prosecution would be in the public interest.
That's no different from the tests applied to any criminal prosecution.