|1.||the door swings both ways|
It works both ways - and not just the way that the person you are saying this to is describing it.
Student: "You should respect my rights, you know"
Teacher: "And you should show me some respect, if you want that. The door swings both ways."