Siege-accused put police lives at risk, court hears