This was a piece of advice I used to often get from my parents as a child. Didn't really understand it for the longest time, I used to think "they're my friends! they're going to help me out too when I need it". Took a few times of getting into one-sided friendships to realize what they meant, nowadays anyone being excessively nice without a reason sets of alarms unless I know enough about them.