TSX falls before ending one of its best months in years