I'm not really sure how crime works in US but in my country there's sort of minor offence kind of thing when you just get the ticket or are being told by the policemen not to do that again. You may refuse to take the ticket and defend yourself in court. And there's a crime, where you can get arrested.
If you ignore "do not step on the grass" sign can you get arrested in US as well?