No mathematician ever came up with an abstract theory from the top of their head - they also started from examples and were gradually increasing abstraction only when they understood the matter on a certain level and needed to express this understanding in a simple abstract language in order to move on to the next level of complexity...
It takes quite a lot of time to learn abstract mathematics this way, but it is the only way when you really want to understand what is going on.. But it's normal, mathematical texts are just extremely "dense" - you are not supposed to read them in the same way (and speed) as say history or biology books. So take your time , read every sentence and every formula, read it multiple times if needed, and always have one or more examples in your mind that on which you visualize (in your mind or on a piece of paper) every single bit of the abstract theory you read. It is slower than just reading, but with experience you will be able to it faster and faster until it will turn into a process that automatically runs in the background of your mind anytime you read a mathematical text..
Good luck!
The Structure and Interpretation of Computer Programs
It’s a classic text on computer science that starts from basics and goes into functional programming