The university student engaged in an “act of stupidity” when he rode a motorbike through road blocks at the crash site where two men died, a court has heard.