You should consult with an experienced deportation attorney. Depending on how DHS charges the case and your personal immigration history, you may or may not be eligible for a waiver or other forms of relief. If the criminal proceedings are still pending, have your criminal defense attorney consult with an experienced immigration attorney prior to proceeding any further. The attorney may be able to fashion a plea that will not trigger immigration consequences.
I agree that you need to speak to a criminal attorney and an immigration expert. A skilled criminal attorney can assist you in minimizing the damage from your charge. There are ways to avoid a conviction in many cases of this type, when the stakes are so high. Do not go forward without experienced counsel with you!