The measures have been enforced by an army of neighborhood committees and a string of barriers.
Some of the boundaries are more official-looking than others.
At one spot, a long green border is flanked with a red Communist Party flag, propaganda slogans and tent station.
Elsewhere, a mountain of shared-use bikes have been piled up to block holes in a fenced barrier.
At one point where a blue metal barrier has been cut open, a bicycle is wired to the fence to prevent anyone passing through the gap.
Soldiers marched along one deserted road next to another blue barrier, with an empty tree-lined park and towering pagoda visible behind.