As for Gamaliel, he was the teacher of Paul; and it is worthy of wonder how he, being a teacher of the law and a man of discerning mind, had not yet believed up to this point. This is because Paul had not yet believed either. Pay attention to the wise adaptability of the speech — to how Gamaliel immediately struck them with fear, and so as not to give the suspicion that he shared the views of the apostles, he converses with the Jews as with people of the same convictions and does not express himself particularly harshly, but says: "consider… what you intend to do with them."
Source: Commentary on Acts