They are not immune ...
We all have the same "protection". If we break the law and are caught, then there is a chance that the CPS will decline to prosecute for any number of reasons, including "it's not in the public interest", in which case we have got away with it.
The only difference being the probability that the CPS will decide not to prosecute ...