Beazley's mother and father were in the back of the court yesterday supporting their son.
But in 2015 two major events happened that "threw him off his compass", Mr Fairley said.
Beazley's uncle died and a young woman he was very fond of went to Australia, to the arms of another person.
"He found a new whanau in the gang and he had to prove himself. The gang were only too keen to get a young man like this and exploit him."
Last New Year's Eve, Kaitaia man Lee Rata was severely beaten in Bonnetts Rd Kaitaia, near a property where there were wedding celebrations. He was found by a passerby, who called emergency services, but died of brain trauma the following day in Whangarei Hospital.
As a gang prospect, Beazley took the opportunity to further his standing, claiming to police he committed the murder and not implicating anyone else.
However, his mother knew her son was not capable of murder and the next morning went round Moerewa seeking out CCTV footage that showed her son had an alibi.
She then approached a lawyer, spent a day with police and, in an interview with a detective, Beazley came clean.
Justice Ailsa Duffy said perverting the course of justice was a serious offence and struck at the heart of the justice system and was punishable by a maximum prison term of seven years.
Duffy sentenced Beazley to 10 months' home detention after discounts for his young age, early guilty plea and remorse.
"You have been given an opportunity to make something of your life and put this offence behind you. With the support of your whanau and employers, you can make something of your life," Justice Duffy said.
Lester Pairama, 17, Christopher Mana Manuel, 36, Juanita Rafael Wilcox, 26, and Joseph Martin, 41, all of Moerewa, all members or associates of the Mongrel Mob, are jointly charged with the murder of Mr Rata and aggravated robbery. A fifth person Gregory Mark Comer, 58, of Paparoa, is charged with being an accessory to murder after the fact, possession of methamphetamine, perverting the course of justice, and receiving. They reappear on July 14.