Someone stopped by searching for “how did law breakers endanger ancient egypt?”
As a professor of mine once pointed out, the Egypt that was is the foundation of the Egypt that is.
Generally, Egyptian lawbreakers damaged society in the same ways lawbreakers endanger every society on Earth. “The law” is essentially a social compact. Citizens shall not shall not steal, shall not murder, shall not rape, and so on. To do so erodes the social order, weakens the bonds that hold a community together, and leaves the way open for even more serious crimes.
In particular, “getting away” with minor crimes, even such crimes as pilfering or throwing pebbles at windows are serious signs of social collapse.
Young people are far more likely to turn to crime, violence, and other forms of predation if crime is tolerated. For most, crime is more a display of personal power than a means of earning an adequate living.
For some, a mere display of power is not enough. They must have power in fact as well as appearance. These dangerous criminals become important people, able to order the people disarmed and helpless against the power of the State, and to order the deaths of vast numbers of people, an whole peoples, the confiscation of their properties, and to commit other evils.
Of course, every compact must be enforced. The rulers, headed by the Pharaoh, tried to suppress criminal activity, but when the soldiers were out of sight crime flourished. Pretty much as it does in the modern world.