You gradually get more and more points every month until you reach the maximum, which is about 15k.
If you lose/cancel your subscription at any point, I believe Jagex offers a week long grace period for you to renew your subscription and retain your regular amount of loyalty points. However, anything after a week means you reset and go back to the start and begin building up your points again.

