Particle と function in "あんまりのりだすとあぶないぞー"


A small doubt, in the phrase: "あんまりのりだすとあぶないぞー" I do not understand why the
particle と is in the phrase, its function is not to include anything? As in
lists etc? What function is she performing in that sentence? I’m reading the
manga Yotsubato and I came up with this question...

