That's a very immature way of dealing with the problem (by the management). The issue likely has 2 very different perspectives and both people involved should be mature enough to be confronted with the other's perspective so it can be dealt with fairly.
For example, you might be sitting opposite of some female co-workers and frequently meeting glances might be interpreted by them as "staring" etc. while you might not even be consciously aware that you do it ... Solution: put up some optical barrier after talking with all people involved together.