The plane veered right just before crashing.

Literal

Airplane [topic-は] crashing just-before [at-に] right [to-に] turned.

墜落寸前に右に旋回した — 寸前 means 'just before.' A dramatic last-second maneuver.