Out of Country Loans

I posted an ad on this site for a refi loan, and got a response from a loan officer out of the country. Is it legal to borrow money from out of the us for a purchase here? And how can you be sure the loan is legal?
Any help would be great