Cook the spaghetti in a large pot of salted water until just shy of al dente, about 1 minute less than the package says. Reserve 1 cup of pasta water, then drain.
Melt the butter in a large skillet over medium heat. Add the garlic and red pepper flakes and cook for 1 minute until fragrant, taking care not to brown the garlic.
Pour in the cream and simmer gently for 2 to 3 minutes until slightly thickened.
Add the spinach a handful at a time, stirring until wilted, about 2 minutes.
Add the drained spaghetti to the skillet with the lemon juice and Parmesan. Toss well, adding splashes of the reserved pasta water until the sauce coats every strand.
Season with salt and black pepper, and serve hot with extra Parmesan on top.