Pearl is definitely a prequel and it wouldn’t hurt to watch that first before watching X, but it’s up to you how you want to do it.
There will be a sequel to X coming out next year called MaXXXine, which is based off of Mia Goth’s other character in X, that I’m very excited for.