Necessity may force you to do unto the prince that which you see the prince about to do to you.
Niccolò Machiavelli (1469–1527) Italian politician, philosopher, political scientist
The Discourses on Livy, Book 3, ch. 6 (1517) [tr. Detmold (1882)]
See Matthew 7:12.

