The second law only applies to large systems. The second law is about the likely behavior of a system where no energy or matter gets in or out. The bigger the system is, the more likely the second law will be true.