It means violating the normal rules of a professional relationship by behaving in a manner that may be appropriate for a personal relationship but isn’t for a professional one.
For example, teachers, doctors, etc. should not date their students or patients or invite them to their personal events.