Teenage boy who attacked policeman in e-ridable event at Optus Stadium argues ‘entitled to resist arrest’