Two strikes against (someone)

To do two things that are wrong or bad and have only one more thing to do to cause you serious trouble ( from baseball where a batter is finished after three strikes).

The young boy already had two strikes against him when he went to hear the judge’s decision about his crime.