Legal analysis: If it belongs to residents who must be isolated, special management during the epidemic period is not illegal.
Legal basis: Article 51 of the Law of the People's Republic of China on Public Security Administration Punishment commits one of the following acts, and shall be given a warning or fined not more than 211 yuan; If the circumstances are serious, he shall be detained for not less than five days but not more than ten days, and may also be fined not more than 511 yuan: (1) refusing to carry out the decisions and orders issued by the people's government according to law in case of emergency;
(2) obstructing the staff of state organs from performing their duties according to law;
(3) obstructing the passage of vehicles such as fire engines, ambulances, engineering emergency vehicles, police cars, etc. performing emergency tasks;
(4) Whoever forcibly rushes into the warning tape and the warning zone set up by the public security organ and obstructs the people's police from performing their duties according to law shall be given a heavier punishment.