Country A can just a well turn a blind eye on direct spying like it has done so numerous times in the past.

> Since country A didn't do the surveillance, it didn't break any laws.

Of course it did, that's where the data came from!