Every (or at least a lot of) project seems to have code like this somewhere:

if (user.subscriptionEndsAt < new Date()) {

// ...

}

There's nothing wrong with it... until you have to test it.