Constraining the magnitude of the largest event in a foreshock-main shock-aftershock sequence