you live by the sword, you die by the sword

You become the victim of something that you want to have and will do whatever it takes to get it.