A fighter is someone who deals damage, but can only take so much before being forced to back off or die.
A tank is someone who doesn't deal much damage, but can survive for long periods of time.
A juggernaut is a mix of the two. High damage output and high resistances, but are usually more severely limited by mobility and/or cooldowns.
So if jinx builds full defensive stats is she a tank or just an adc who built tanky?
If Jinx goes full tank, she's still listed as a Marksman but she doesn't have any of the benefits that being a conventional marksman provides. Yes, she has range but her autos do no damage and she's still gated by mobility.
It's functionally the same for Malphite. Yes, he has slightly higher base stats than other classes (which is one of the benefits of being a tank) but that isn't a substitute for losing out on ~2,000+ max HP and 200+ bonus armor/MR. He's also got a kit that's fairly heavily reliant on one ability (R) and he isn't mobile.