Quite obviously, any time you choose to commit crimes in your host country you put your immigration status in peril.
Odds are it would fall under the petty offense exception so as to not prevent the future issuance of a visa, although it can trigger additional questions and slow down the process.

