Jesus meant that we should treat people the way we would like to be treated and not repay unkindness with unkindness.
وَيُسِرُّكَ أَنْ تَرَاهُمْ يُصْغُونَ إِلَى أَفْكَارِكَ وَيَأْخُذُونَ مَشَاعِرَكَ بِعَيْنِ ٱلِٱعْتِبَارِ .‏