The meaning is very similar but the grammar is different.
I can give up trying to climb a mountain, or I can give in to the mountain. I can give up fighting someone, or I can give in to someone in a fight. I can give up staying awake, or I can give in to sleep.