Niccolò Machiavelli said this quote

It is better to be feared than loved, if you cannot be both.