lightning invoices are decodable. this means that if the server generates an invoice with an incorrect amount, you can see that the amount is wrong before making the payment.
check this out: 

The Lightning Invoice
Learn about Bitcoin Lightning Network invoices. Get in-depth decoding on the inner workings of payment requests in LN.