Mavs pushed to brink of elimination with loss to Spurs