This means you should not do something. It is like saying 'it is wrong to do this'. People use it for things that are not good to do.
。
One should not judge people by their appearance.
。
I regret that I shouldn't have said such a terrible thing.
、に。
Customer personal information should not be leaked externally for any reason whatsoever.
に。。
You shouldn't rely on others that much. You have to be more independent.
、に。
Politicians should always be impartial and should not advance policies that only benefit specific groups.