Live by the sword, die by the sword.

It is the common rendering of the Biblical verse Matthew 26:52, in which the King James version reads, Then said Jesus unto him, Put up again thy sword into his place: for all they that take the sword shall perish with the sword.