download – Integrate vs downloaded gif

It is almost always best to download it to your site. If you have a link to the image and the original site deletes the file, you will get something other than what you expect from this place on your site.

As to whether this is legal, you will need to check the terms of use of the Giphy website.