Whenever, in the opinion of the building official, by reason of defective or illegal work in violation of a provision or requirement of the Code, the continuance of building operation is contrary to public welfare, he shall order, in writing, all further work to be stopped and may require suspension of all work until the condition in violation has been corrected.