To take liberties with someone means to act disrespectfully or inappropriately, which is exactly what she didn't want the stranger to do.
Consider the staetement "Nor was she about to allow a stranger to act disrespectfully or inappropriately towards her!". Based on this statement, is "Nor was she about to allow a stranger to take liberties with her!" a true statement? Yes/no/unknown