The problem with the pronoun "you" in the question is that it is remote. The best replacement for it is "one". The statement should now read "If a car accident happens and one leaves the scene before the police arrive, it is a crime.
What is a Remote Pronoun?
A remote pronoun occurs when the antecedent or noun that it replaces is too far apart to be clear or understood.
An example is:
How come he didn't tell his father that the university will be closing for the week? Instead, he traveled and didn't come back until after three weeks, Dave that is.
The pronoun "He" references Dave but the time taken before referencing the antecedent here might be confusing to the reader.
See the link below for more about Remote Pronouns:
https://brainly.com/question/777262