"think carefully about" or "be cautious about." Gamaliel was warning them not to do something that they would later regret.