Actually, in all the Bond movies, I don't recall him ever having a mission to spy per your definition. Spies are typically used in situations between countries and many of Bonds foes clearly weren't countries, e.g., Goldfinger, Dr. No, Drax. They were just super criminals without allegiance to any country. The closest classic spy movie I recall was From Russia With Love but even that involved SPECTRE more than Russian.
I mean, fundamentally the spy thriller spy does anything a given country needs done in another country that would otherwise be considered illegal or an act of war, if the provenance of the order was known.