Virginia

I filed child support on my sons father back in march and 3 weeks later the police arrested me on charges saying he said I sent him threatening messages back in december. So we now have to go to court for that. On mothers day he sent me messages calling our child a bastard and I responded saying your a deadbeat and I will save this for court and the very next day I filed a non support order for him being behind on his child support and the next day he filed a charge saying I called him with the intent to annoy?...I didnt call him he instant messaged me and I replied back.

Is there anyway I can beat this case? I have messages showing he has cussed me out and said he was going to beat the shit out of me we also have a court case for him choking me in a different county. I really do not need this misdemeanor or I will loose my job if I do get charged I am going to appeal it. The way the charge is set up it looks like he can try to get me for threatening, harrassment, or cussing through a text msg? IS this true? and what are my chances of fighting this?