You’ve already seen that 不要 (bú yào) can mean that someone either doesn’t want something or doesn’t want to do something (for example, 他不要牛奶). But 不要 is also used a lot to tell someone not to do something.