Effect of the star formation histories on the SFR-M-* relation at z ≥ 2