Eggman - Probably to be honest.
Sonic - No, unless forced to by circumstance such as in City Escape.
Tails - Same as Sonic.
Knuckles - Maybe, if he didn't know or understand the laws due to growing up sheltered and isolated from society.
Amy - Same as Sonic.
Metal Sonic - Yes, unapologetically. Who's going to stop it?
Espio - Maybe if he's invisible, but probably not. He seems to be a law abiding citizen.
Charmy - Only if he doesn't know better.
Vector - No.
Mighty - Same as Sonic.
Ray - He'd just fly over traffic instead.
Big - Maybe if he's looking for Froggy, but generally not.
Gamma - Possibly.
Cream - No.
Shadow - Probably depends on his mood and whether he's on duty for G.U.N.
Rouge - Depends on if there's anyone watching. She's already a thief so she clearly doesn't hold the law in high regard.
Omega - Possibly.
Emerl - Depends on who it's been hanging around.
Gemerl - Yes during Advance 3, no after.
Blaze - No. She's a Princess, committing crimes is beneath her.
Marine - Hard to say, but probably not on purpose.
Elise - Same as Blaze.
Silver - No, but he might fly over traffic using his telekinesis.
Mephiles - Absolutely, same as Metal Sonic.
Jet - I can see it.
Wave - Same as Jet.
Storm - Same as Jet.
Orbot - Not intentionally, but maybe as part of hijinks.
Cubot - Same as Orbot.
Tangle - Maybe by accident.
Whisper - No.
Rough - Yes.
Tumble = Yes.
Belle - No.
Starline - Probably not, but maybe in some circumstances.
Surge - Definitely.
Kit - Only if Surge does first.
Sage - No.
That's everyone I can remember their name off the top of my head.