The correct phrase is 'act up', meaning to behave badly, misbehave, or cause trouble. When a pupil 'acts up' in class, they're being disruptive. 'Act with', 'act to', and 'act over' are not standard phrasal verbs for misbehavior. This is commonly used for children, students, or even machines that aren't working properly.