Angles are being interpolated in wrong way in level sequence

I have two angles which have to be interplated. angle1 = -152, angle2 = 146. There are two ways: (-152 - 62 = - 214 = -214 + 360 = 146) and (-152 + 298 = 146). As we can see it is possible to subtract 62 or add 298 to get the same result. Why doesn’t the engine detect the shortest way? How can I fix it? Can I?