Rangers manager Steven Gerrard says he would be prepared to take his team off the pitch if he feared they were at risk from violent fan behaviour.