Attacks on Online Learners: a Teacher-Student Analysis