Lending Money Proverbs 27:13

I was reading the verse below, and didn't quite understand the meaning. I checked Matthew Henry's interpretation of it, and as far as I can tell, I agree with him.  I hope it is helpful.

Proverbs 27:13 ESV
"Take a man's garment when he has put up security for a stranger, and hold it in pledge when he puts up security for an adulteress."

Matthew Henry's Comment
This also we had before, Prov 20:16 . It shows who those are that are hastening to poverty, those that have so little consideration as to be bound for every body that will ask them and those that are given to women. Such as these will take up money as far as ever their credit will go, but they will certainly cheat their creditors at last, nay, they are cheating them all along. An honest man may be made a beggar, but he is not honest that makes himself one. It advises us to be so discreet in ordering our affairs as not to lend money to those who are manifestly wasting their estates, unless they give very good security for it. Foolish lending is injustice to our families. He does not say, "Get another to be bound with him,’’ for he that makes himself a common voucher will have those to be his security who are as insolvent as himself; therefore take his garment.