Explain MITM attack and how to prevent it?

Technical