Binding-and-folding recognition of an intrinsically disordered protein using online learning molecular dynamics