Have two strikes against (one)

To do two things that are wrong or bad and have only one more thing to do to cause you serious trouble, to be in a difficult situation ( 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.