Your analogy doesn't work. The student locking their computer is a preventative measure, not a reactive. Williams couldn't have prevented others' attitudes towards her. She did nothing to invite the behavior. This is more akin to telling the student they should've had a better lock when they had already locked their computer, but had it stolen anyway.