Of course, the best way to avoid scams (and there are lots of them in apartment rentals to travelers) is to deal with renting companies that have been used by people you personally know.
Failing that, one thing I do is to deal only with companies that accept deposits by credit card -- I never pay in advance by bank transfer. A credit card transaction leaves an audit trail and gives you some protection if the renting company doesn't deliver.