Cowboy Runs Into Cowboys

On the flop, the opponent checks. Kenna James bets and the opponent raises. James calls. On the turn and river, the opponent bets. James raises. The opponent calls. James has 5-5, but the opponent has K-K. James is down to 4,000.