These precepts are the "Three sieves", often wrongly attributed to Socrates. Here [0] is an interesting discussion on their origin.
For instance, these three sieves are regularly referenced in Europe since the XIXth century, but can already be found much earlier in the Indian Manusmriti.
[0]: https://skeptics.stackexchange.com/questions/39843/are-socra...