If a lawmaker creates a law to make something illegal, sends police to prosecute the population doing said thing, affirms that arresting people for having a cup of coffee
is absolutely the intention of writing the law - that is perfectly reasonable.
If at the same time they are breaking the law they created - that is corruption. For the people prosecuted for said crime with trials pending, it is information that is useful for them to know that the lawmaker conducted themselves in this manner.