The difference between RAW and RAI
The difference between RAW and RAI
This doesn’t really work as far as I can tell, RAW or RAI. While it is the case that in theory a Melee Attack with a Heavy Ranged Weapon would satisfy both criteria, there is no weapon that can normally perform such an attack, as far as I’m aware. Using a Heavy Crossbow or a Longbow to make a Melee Attack would be attacking with an Improvised Melee Weapon, which is both not a Ranged Weapon and does not have the Heavy property, so neither Feat would be useful.
If we are being generous we could say that attacking with a Heavy Crossbow would be like a Club and a Longbow would be like a Staff, and per the Improvised Weapons rules we could use those weapon stats for our Improvised Weapon, however, note that neither of these have the Heavy property, so you would be unable to use either Feat in this case as well. (The Heavy property, particularly on Ranged Weapons, seems to be not about the weight of the weapon (an intrinsic property of the thing), but about the strength required to attack with such a weapon in it’s intended manner. In this way it would make sense that neither Feat would work.)
If you look at the Ammunition Property it says “If you use a weapon that has the ammunition property to make a melee attack, you treat the weapon as an improvised weapon”, which I read as meaning your weapon is an Improvised Weapon rather than a Ranged Weapon. Although I do concede that the improvised weapons rule says that if you are using a Ranged Weapon to make a Melee Attack it will deal 1d4 damage, which I assume means that you can’t use the rule that says that you can treat it like another similar weapon, which I think is odd, but ok.
(Also, if you want to be very nitpicky about it, the ammunition property says you can’t make ranged attacks without loaded ammunition, but any type of attack will spend your ammunition. However, I don’t think that’s a fair reading, and I think the ammunition property simply does not apply, because you are using it as an Improvised Weapon and therefore none of the Properties apply.)
I suppose if you really wanted to get into the details, the rules in the Ammunition section would not apply to weapons that are Ranged Weapons, but do not have the Ammunition Property, like the Dart or Net. But I feel like it would be most reasonable to rule that these are also considered Improvised Weapons and not Ranged Weapons that deal 1d4 damage if used to make a Melee Attack. (Although the Net can not deal damage as per it’s Special Property, so that doesn’t really apply to it, so you would be left with the Dart, which doesn’t have the Heavy Property, and thus isn’t really relevant to the greater discussion here.)