Ask an Immigration Solicitor. Get an Answer ASAP.
Unfortunately if your marriage breaks down and results in a divorce your current visa becomes invalid and you would not be able to apply for ILR in 2 years time under the spousal route. However as your children are British and settled in the UK you would need to make a fresh application on the basis of being a parent of a British child under the 5 years route and the clock starts again for you.
Thank you for posting your question on JustAnswer. I have reviewed it. If you have any follow up questions, I'm here to help and happy to respond. If you feel I've given you 5 star service, please rate me 5 stars at the top of the page