Friend [from-から] borrow-money not-do side [subject-が] good.
~ない方がいい is the negative counterpart of ~た方がいい — 'it would be better not to.' 借金する is a noun+する compound meaning 'to borrow money' or 'to go into debt.' Practical advice about maintaining friendship boundaries.