Proverbs 22:24-25:

Make no friendship with an angry man; and with a furious man thou shalt not go:
Lest thou learn his ways, and get a snare to thy soul.

See also:

Three Strikes Leave You Out
Jesus and the Prayer Requests
Does 2 Timothy 3:5 Forbid Associating with Non-Spirit-Filled Christians?