A man who attacked two paramedics, including a woman, as they tried to help him has narrowly avoided jail for the ‘‘terrifying’’ incident.

Despite laws introduced last year by the Andrews government decreeing "mandatory" jail for anyone who attacks emergency workers, the magistrate in the case ruled it would not be in the best interests of 26-year-old Orion Jesse Harding, nor of the community, to impose a prison term for what he described as "extremely serious offending".

Orion Jesse Harding won't be going to jail for his attack on NSW paramedics. Credit:Border Mail

The Wodonga Magistrates Court heard on Tuesday that Harding was snapping in and out of reality during the alcohol-fuelled episode last year.

Two NSW paramedics were called to Granthams Bend in Wahgunyah, on November 17.