Let me reformulate that in a more rational way:
If all men have horns
and Socrates is a man,
then Socrates has horns.
Or in mathematical language:
If the set of "all men" is a subset of "all things with horns"
and "Socrates" is a subset of "all men"
then "Socrates" is a subset of "all things with horns".
This a way to formalize assertions into mathematics and use mathematical tools to determine the truth value of these assertions.
Like mathematics, rationalism makes no statement about the real world, it makes statements about truth values, given that the premises are correct representations of the real (or an ideal) world.
The danger lies in forgetting that limitation.
I agree with Russell and Whitehead that mathematics is a subset of logic.