This is applicable to both civil and criminal. For example, I’ve been pirating for over 26 years. I can’t be sued by anyone for the pirating I’ve done for 23 of those years, only for the past 3 years that I’ve pirated.
If anyone tries to scare you about how you’ll be caught for your past pirating activities, don’t be.


Assuming this is in the United States of America, this is not necessarily true based on a recent supreme court case, Warner Chappell Music, Inc. v. Nealy, the U.S. Supreme:
https://www.supremecourt.gov/opinions/23pdf/22-1078_4gci.pdf
https://www.skadden.com/insights/publications/2024/05/supreme-court-clarifies-that-copyright-damages-are-not-limited-to-three-years