Prosecutors have told a court a boy knew right from wrong when he allegedly put the lives of two police officers in danger while trying to ram their pursuit vehicle.