Minimum degree and size conditions for the proper connection number of graphs