Fire protection relies on system components to detect and prevent fires and mitigate their consequences whereas fire prevention requires inspection, testing, and maintenance of systems to ensure they are operating properly and they are effective during a fire.