restrict yourself to something        
phrasal verb with restrict verb [ T ] uk/rɪˈstrɪkt/ us/rɪˈstrɪkt/
 约束自己不越出…的范围;将自己限制在…限度内
to limit yourself to one particular thing or activity
  If I'm driving, I restrict myself to one glass of wine. 我要开车的时候,只许自己喝一杯葡萄酒。