Okay. . .it's time to address the misuse/misunderstanding of this verse.
See 2Chr 12:8; Dt 28:48 for to what it is referring.
2 Chronicles 12:6 Whereupon the princes of Israel and the king humbled themselves; and they said, The LORD is righteous.
2 Chronicles 12:7 And when the LORD saw that they humbled themselves, the word of the LORD came to Shemaiah, saying, They have humbled themselves; therefore I will not destroy them, but I will grant them some deliverance; and my wrath shall not be poured out upon Jerusalem by the hand of Shishak.
2 Chronicles 12:8 Nevertheless they shall be his servants; that they may know my service, and the service of the kingdoms of the countries.
Deuteronomy 28:45 Moreover all these curses shall come upon thee, and shall pursue thee, and overtake thee, till thou be destroyed; because thou hearkenedst not unto the voice of the LORD thy God, to keep his commandments and his statutes which he commanded thee:
Deuteronomy 28:46 And they shall be upon thee for a sign and for a wonder, and upon thy seed for ever.
Deuteronomy 28:47 Because thou servedst not the LORD thy God with joyfulness, and with gladness of heart, for the abundance of all things;
Deuteronomy 28:48 Therefore shalt thou serve thine enemies which the LORD shall send against thee, in hunger, and in thirst, and in nakedness, and in want of all things: and he shall put a yoke of iron upon thy neck, until he have destroyed thee.
Deuteronomy 28 is all about blessings in obedience, and curses in rejecting God's instruction.
In Proverbs 24, (and many times Proverbs goes from subject to subject,) but keeping inline with Deuteronomy 28:, to see if there is a connection to doing onto others as they have done to us....just not seeing it. Maybe I'm missing something?
Proverbs 24:24 He that saith unto the wicked, Thou are righteous; him shall the people curse, nations shall abhor him:
Proverbs 24:25 But to them that rebuke him shall be delight, and a good blessing shall come upon them.
Proverbs 24:26 Every man shall kiss his lips that giveth a right answer.
Proverbs 24:27 Prepare thy work without, and make it fit for thyself in the field; and afterwards build thine house.
Proverbs 24:28 Be not a witness against thy neighbour without cause; and deceive not with thy lips.
Proverbs 24:29 Say not, I will do so to him as he hath done to me: I will render to the man according to his work.
Proverbs 24:30 I went by the field of the slothful, and by the vineyard of the man void of understanding;Proverbs 24:31 And, lo, it was all grown over with thorns, and nettles had covered the face thereof, and the stone wall thereof was broken down.
Proverbs 24:32 Then I saw, and considered it well: I looked upon it, and received instruction.
I'm not certain what point you are making Elin, could you elaborate?