boundaries at work

how do you manage to set rational boundaries in the workplace? how do you try to stop people pleasing or being standoffish?