In politics, you either die a hero, live long enough to see yourself become the villain or retire. Set yourself boundaries in terms of what principles you're unwilling to trade off. When you find yourself seriously contemplating doing so, that's when you're done.