Just like you, there will be other sellers putting orders at the same time as well thinking of being ahead in the queue, so no guarantees whether it would be first in line.
This happens when a stock hits Upper or Lower Circuit, your market order would be converted to limit order at the last traded price. Read this to get better idea Why does my market order get changed to a limit order while trading certain scrips? - #2 by Matti