Earlier quoted context omitted.
Something can be illegal even if cops are not resting everyone who does it. That's the worse situation in fact, when it becomes the sole discretion of individual police officers who to punish.
It's up to elected district attorneys.
At best a DA is an elected official deciding whether or not to enforce a law on the books.