vol I
https://archive.org/details/electricandmagne01maxwrich
vol II
https://archive.org/details/electricandmag02maxwrich
The relevant section is in the preliminaries in Vol I : I assume you already know electromagnetism, I suggest jumping to pdf pages 52 "on potentials" and reading till 57. No modern textbook will explicitly introduce such an assumption, instead modern textbooks assume the student has been indoctrinated with cartesian product spaces i.e. R^3 etc. Such students would have seen in prior analysis courses that the line integral of the gradient of a scalar function does not depent on the path [... in R^n!]. So if curricula and students implicitly and a priori exclude spaces other than R^n, then no student will protest that for example the line integral of the electric field between 2 points could depend on the exact path, making all subsequent math and theorems more tractable, at the "small price" of a priori excluding the (arguably) confusing possibilities of handles (if you are a mathematiciann), wormholes (if your a physicist).
Maxwell on the contrary refuses compromise on investigative accuracy to "ease the job of didactics", theres many examples of that throughout the treatise.
I agree. There is a great book series: Great Books of the Western World, that accumulates all the fundental texts written by subject area founders. They are green bound tomes. There is also a homeschooling curriculum built on using them, I am jealous of anyone who received such a great education growing up.