Sorry but that seems like an insane system where whole classes of actions effectively are illegal but probably okay if you're likeable. In your scenario the obvious solution is to amend the law and pardon people convinced under it. B/c what really happens is that if you have a pretty face and big tits you get out of speeding tickets b/c "gosh well the law wasn't intended for nice people like you"
Are you even responding to the right comment? I read your comment and the parent comment you've responded to and this response doesn't make sense - it reads like a non-sequitur.
It isn't "my scenario". These are real cases.
https://www.aclu-mn.org/press-releases/victory-judge-dismiss...
"In his decision, Judge Cajacob asserts that the purpose and intent of Minnesota’s child pornography statute does not support punishing Jane Doe for explicit images of herself and doing so “produces an absurd, unreasonable, and unjust result that utterly confounds the statue’s stated purpose.”"
Nothing in there about "likeability" or "we let her off because she had nice tits" (which would be particularly weird in this case). Judges have a degree of discretion to interpret laws, they still have to justify their decisions. If you think the judge is wrong then you can appeal. This is how the law has always worked, and if you've thought otherwise then consider you've been living under this "insane system" for your entire life, and every generation of ancestors has too, assuming you're/they've been in the US.