To give thought to the OP: Jesus stated what he said as guidelines for what we should live by. It wasn't meant to be followed perfectly and I believe that he understood this, that is why (in Christian belief) he died for our sins because he knew and understood that even though the guidelines he placed upon us would be followed, they wouldn't be followed perfectly and sin would happen.
Well, I am not sure.
These people probably thought that he was teaching His gospel and the way by which a person might be saved. Similarly, in another place He taught another man to follow the Law and then give away all of his possessions in order to be "saved". Is He trying to frustrate and mislead all of these people or what?
“Judge not, and you shall not be judged."
This is apparently about how not to be judged by God (salvation).
"Condemn not, and you shall not be condemned."
This is apparently about how not to be condemned by God (salvation).
"Forgive, and you will be forgiven."
This is apparently about how to be forgiven by God (salvation).
"Give, and it will be given to you: good measure, pressed down, shaken together, and running over will be put into your bosom. For with the same measure that you use, it will be measured back to you.”
And this is apparently about a reciprocal relationship that exists between man and God that is based on how much we give to others.
All of these things are based on what we do and the kind of heart character we have, are they not? According to Jesus these things are the basis of our salvation.
Matthew 5:20
For I say to you, that unless your righteousness exceeds the righteousness of the scribes and Pharisees, you will by no means enter the kingdom of heaven.
Again, was He lying to all of these people?