Ah, I think I get it. Violating the spirit of a law can be, often is, enough to get you convicted of a crime. Arguably more often than violating the letter of the law but not it's spirit.
However, if a judge dodesn't want to find someone guilty, "not violating the letter of the law" can provide a fig leaf for the friendly judge.