So, for future purposes just wanted to know are there any edit restrictions in terms of limit, privillages etc for self asked questions
There are only a few restrictions regarding editing and it seems that you fell into the trap of one of them:
So, I tried to edit one of my downvoted questions to ask a completely new one but as the new question asked was completely different from the previous edited one the question was closed and locked.
(emphasis mine)
The question was rightfully closed and locked because when you change your original question it automatically invalidates any of the existing answers that contributors spent time to research and answer, as a result, when people come across your (now changed) question it'll seem as though the previous answers are answering something completely different and they'll receive negative feedback due to no fault of their own.
The general rule of thumb is not to amend your original code or question.
If however, you do wish to adjust the code, append the new version of the code as a update, don't replace previous versions.
If you have another follow-up question that is unrelated to your current question, feel free to ask another question.
As far as general editing etiquette goes, it is best to try and make your edits as thorough as possible to prevent filling the edit history with lots of entries.