On the surface, Hong Kong leader Carrie Lam appears to have had a few pretty good months: Her government has managed to contain the coronavirus outbreak, during which street protests have mostly disappeared.

Yet her bosses in Beijing don’t appear convinced that will help their allies during Legislative Council elections set for September. A spate of arrests and stern official edicts over the past few weeks amount to an offensive that looks designed to ensure China gets its way no matter what happens at the ballot box.

Over the weekend, Hong Kong police arrested more than a dozen prominent pro-democracy figures in the former British colony, including a current lawmaker, former politicians and a media tycoon whose outlets are sympathetic to protesters who paralyzed the city for much of the last year. That came after Beijing agencies that oversee the city blasted the opposition for filibustering in the parliament, known as LegCo.