A large crane swinging amid flames was in danger of collapsing Friday at a California construction site, officials said.