Teenager Kian Chevelleau sent threatening messages to his partner.
The 18-year-old threatened to ‘boot off the door’ at her home and in another message said he was going to ‘bang her face in’.
The defendant also breached a community order he received in November for assaulting an emergency worker.
Now Chevelleau has been sentenced to 24 weeks in a young offenders’ institution, suspended for 12 months, at North Staffordshire Justice Centre.
Prosecutor Lynne Warrington said the defendant sent his partner two messages which conveyed a threat on February 19.
Miss Warrington said: “In one he threatened to ‘boot off the door’ and in the other he said, ‘I am coming. I am going to bang your face in’.”
The court heard the victim later made a retraction statement.
Chevelleau, of Friar Street, Stafford, pleaded guilty to two charges of sending a message which conveyed a threat and breaching a community order.
Simon Dean, mitigating, asked the court to suspend any sentence. He added: “He is not a youth any more and if he does not comply with community orders he will go to prison.”
As part of the suspended sentence Chevelleau must complete a rehabilitation activity requirement for 30 days and a six week electronically-monitored curfew from 7pm to 7am.
District Judge Kevin Grego said: “I am not imposing a custodial sentence but understand, you are very, very close to going to custody for a lengthy period of time.
“When you were dealt with in November for assaulting an emergency worker that was a lenient sentence. When people assault police officers during the course of their duties they can expect custodial sentences.
“In your text to your girlfriend, you behaved in a way that tells me you are likely to be violent towards her. You said, ‘I am coming to bang your face in’.
“You think that is acceptable language to use to somebody you apparently have strong affection for. You have a funny way of showing it.”
Chevelleau was ordered to pay a £122 surcharge.