The structure is a perfect parallel: `Succeed → King`, `Fail → Bandit`. The characters combine to create a stark and powerful contrast, showing the two possible outcomes of any major power struggle. Your identity and moral standing are not fixed; they are determined by whether you win or lose.
This is a formal idiom, typically used in written language or serious discussions. It's not something you'd use to describe winning a video game.