Gary McDonald , technology teacher at Balerno Community High School in Edinburgh , said teachers had to be careful of getting into situations where they could be taken advantage of by a group of pupils , or by an individual .