A person's potential is what they could or can achieve. "Anything but" means "anything other than".
This sentence is saying that everyone's potential is infinite, i.e. anyone can achieve absolutely anything they want to, and that anyone who says that your potential is anything else, i.e. anything other than infinite, or not infinite, or