You'll know it's safe to buy when rent can cover the mortgage and all expenses if necessary, eliminating most of your risk. The basic buying safety rule is to divide annual rent by the purchase price for the house:
annual rent / purchase price = 3% means do not buy, prices are too high
annual rent / purchase price = 6% means borderline
annual rent / purchase price = 9% means ok to buy, prices are reasonable