means that
lending money to a friend can strain the relationship if repayment becomes a source of disagreement or resentment.
For example, when you lend money to a friend, you put the friendship in danger, in case there will be problems over the repayment. This is a situation where “Lend your money and lose your friend” applies.