No operating system or program is perfect. But with every upgrade, issues get patched and new features are added. That’s why you need to run Windows updates and also make sure your installed software is up to date. The latter is not so easy because few software updaters support every program available.
If your operating system and your software are always up to date, you reduce the chances of security exploits. If you also run anti-virus and anti-malware scanners and checks, you should be able to keep your computer clean. Less junk and malware will ensure a smooth running system.
If you can't see the email for the dirt, it's time to do a little cleaning. Start with a dry, microfiber cloth--the sort you get at an optometrist's office (you can also buy them at photo and computer stores). Move it in circular motions. Be gentle, but apply slight pressure on particularly stubborn spots.
When keys starts sticking, it's time for a cleaning. Shut down the PC. Keep it open as you turn it upside-down and very gently tap on the back so that crumbs fall out. Then use a can of compressed air (you can buy this at any computer store for a few dollars) to blow out whatever is still stuck. Be sure to read the instructions on the can, first. Then turn the PC upside-down and tap it gently again to get the last bits out.
Protecting your laptop's hardware is usually a matter of caution. Most of ticket reported is spilling a coffee in the keyboard which you can avoid.
Temperature swings could damage a laptop. Today's lithium batteries wear out no matter what you do, but you can postpone the inevitable. Avoid heat and use the battery as little as possible. If you're going to be running on AC power for awhile, shut down or hibernate the computer, remove the battery, and work without it.