A person breaks the law. A cop see it happen. The cop arrests the person. That’s the theory.
But the reality is that laws are being broken all the time. And most of us know that we can get away with breaking some laws some times. Even if a cop sees us do it.
You pass a police car driving five miles over the speed limit. He’s probably not going to arrest you. You shoot off some fireworks on the 4th of July. No cops will show up to arrest you. In some neighbourhoods people are openly selling drugs or sex. The cops drive through and don’t make arrests.
But if you pull out a gun and shoot somebody, you know you’re going to get arrested. Same things if you commit rape or rob a store - if you do it where a cop is watching, he will arrest you without a second thought.
So where is the line drawn? What’s the least serious crime you can commit in the presense of a cop that will always get you arrested? What’s the most serious crime you can commit in the presense of a cop that he might conceivably decide to just let slide?