You can still prosecute someone for whatever the prosecutor wants. This doesn't change that. If someone is acting in bad faith, they can do so regardless of the law.
The prosecutor can still begin a prosecution, but now it will be dismissed pretty much immediately unless there is good reason to believe that the action was not an official act.