The book was dated 1940. Sounds to me more like Stalin was preparing the Red Army to take part in Operation Sea Lion along with his Nazi allies.
Yes, Stalin had an alliance with Hitler until Germany launched Operation Barbarossa in May of 1941.