How was Griner "wrongfully imprisoned"? Did she not break the law?

Why do I know she will go right back to her old ways of saying how bad the US is...

Grats on her release. Hope she doesn't squander the opportunity.