For the record I think it was wrong then, but there are literal KGB records of people in the working for them, and some were caught and arrested at the time. Again I think the law was wrong, but the concern was real. As for "Russia Gate", I remain in unconvinced.
[*edit] if you’re downvoting, kindly share your disagreement, I’d be interested to hear what you have to say.