Only the priests and Levites on duty could enter the temple, so the Levites had to stop others from entering.