I am close on agreeing heads of terms and wanted to understand when are the investors funds usually transferred? early in DD or at the end before closing?

I also get the following question from unsophisticated investors (family and friends), what guarantees the funds raised will be used to buy the business?