Mousavi Majd, from the Quds Force to the gallows

A spy works for an organization, typically a government. A double agent is a spy who also works for the “other side”.  An ordinary government spy is usually patriotic; a double agent is usually acting for personal gain.