I agree with the above notes.
More than that,
I would say there is no need to reinvent the wheel...;)
Here is 3 pin under-voltage detector that will do what you need in every way better:
smaller,cheaper,more accurate,less power and way simpler.
There are many others,
Enjoy