This antinomical understanding (contradictory opposites that are both true) has its origins in Kant's work[0], which was of course picked up by Freud, consciously or not.
I’m pretty sure the idea that things can be good in some ways and bad in other ways came way before Kant.
This may be of interest to you, a few years before Kant with “Syādvāda” going beyond the binary implied by contradiction alone: https://en.wikipedia.org/wiki/Anekantavada