Original: In order to keep from crossing nations internally, however, the line deviates to pass around the far east of Russia and various island groups in the Pacific.
Simplified: So that it does not cross nations, it passes around the far east of Russia and other archipelagos in the Pacific.