4 of 6 added 20 characters in body

Can I make a melee attack with a ranged weapon?

Are there any rules that preclude this action?

I know weapons with the Ammunition property are treated as improvised weapons per this line and this question:

If you use a weapon that has the ammunition property to make a melee attack, you treat the weapon as an improvised weapon .

... but what about darts and nets?

Keep in mind, I am almost certain this isn't the intended result, but what is RAW?