means that
those who impute improper motives to innocent actions deserve reproach themselves. The saying translates the French motto of the Order of the Garter.
The saying “Evil to him who evil thinks” can be used when bad things will happen to someone who thinks evil things.