Show your friend all affection, but do not show him all confidence, and give him all solace from yourself but...

Bestow upon your friend all affection, yet do not bestow upon them all confidence, give them all solace from yourself but do not entrust them with all your secrets.