Are these valid Buddha quotes?
In the first one I think they are summarizing the following from Ambalaṭṭhikā-Rāhulovada Sutta.


  “Whatever action you desire to do with the body [similarly with mind and word] Rāhula, of that
  particular bodily action you should reflect: ‘Now, this action that I
  desire to do with the body—would this, my bodily action, be conducive
  to my own harm, or to the harm of others, or to that of both (myself
  and others)?—Then, unskilful is this bodily action, entailing
  suffering and productive of pain.
  MN61


The other one seems to be coming from a Mahayana sutta, "Sermon on Abuse" in The sutta of 42 sections


  Buddha said: A man foolishly stating or considering that I do that
  which is not right, will obtain no other refutation from me but that
  which proceeds from the exercise of my four qualities of love (?), so
  the more evil he brings against me, the more good will proceed from
  me; the influence of this resting on me, the effect of that returning
  to him
  http://www.sacred-texts.com/journals/jras/os19-14.htm