Here you can see screenshots proving what others have been saying.
It is impossible for Thresh and Rakan to buy melee only item like
,
,
since they are ranged champions. Because of that, they do not get the execute damage on minions regardless of how close they stand to that minion.
https://imgur.com/gLIKdEo
Their attack is always considered ranged even if the minion is only standing 50 units away. They can still use Relic Shield to share gold, but they must last hit the minion just like a other champions do all game, either by using well timed auto attacks or abilities. If you go into the practice tool, buy relic, spawn two target dummies like the image below, you can verify for yourself that they do not execute minions. With my test, I took Alistar with Relic, set up the dummies, and I attacked a caster minion. I killed it in 2 hits and shared the gold with my ally target dummy. Then I took Thresh with Relic, set up the dummies, and I attacked a caster minion standing very close to it and very far from it. I killed it in 5 auto during both of my tests. For all three tests I used the same runes and didn't level up any abilities. I ran this again with Leona, Blitz, Nami, and Karma. Leona and Blitz both took 2 auto attacks to kill the caster minions and share gold. Nami and Karma took 6 auto attacks to kill the caster minion and share gold.
https://imgur.com/fYwwMmp
The only range champions that can buy melee only items are Nidalee, Elise, Gnar, and Jayce because they have melee forms. In ranged form, the melee item is greyed out, meaning the aoe proc and active part is not usable. In melee form though, the item works like expected.
https://imgur.com/DVjXlIz
Ivern is melee but becomes ranged in a bush and Kayle is a melee champion but becomes a ranged champion when using her E. Both of these champions follow the same runs as other multi-form champions.
https://imgur.com/ijkJP65
GP's Q Parley and Poppy's Passive Iron Ambassador are the only ranged attacks (that I can think of) that will proc Melee only effects because they are coded as a melee auto attack despite them being a projectile that travels outside of their champions attack range. If GP used Parley on a minion at the right health, he would be able to proc the execute part of Relic Shield. Same with Poppy. The image below shows both these attacks procing the Ravenous Hydra AOE effect to showcase how the melee effect is able to be proc'd from range, which means that this would work with Relic as well.
https://imgur.com/XaKs8cA
Rakan and Thresh do have special animations based on the range, but that's mostly because their auto attacks are different from most ranged champions. Most range champions throw a projectile. Rakan and Thresh do not. Both Rakan and Thresh's auto attack will go through Yasuo's Windwall because they aren't projectiles. I don't know for certain, but they probably gave them unique animations just so it looked better.