I’m far from an expert on Marx or Stalin. But the technique sounds more like something from Alinsky’s Rules For Radicals. Maybe Alinsky got it from one of them?
Found several similar on net, but have not found a direct quote.
“Accuse others of what you do.” - Attributed to Vladimir Lenin and Karl Marx
but IIRC it is also in the RULES FOR RADICALS book.