Should you just give up when you think your crush likes your friend?

Do not give up. If your friend knows that you like him/her then she/he will turn the person down. But you need to tell your crush that you like her/him. That would make things easier on you.