The sentence means it is not a good idea to develop too friendly a relationship with your servants. 'It doesn't do', or 'It won't do' are little (somewhat old-fashioned sounding) phrases that means that it isn't acceptable or isn't advisable.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.