Rusland skal forstå, at det vil have alvorlige konsekvenser at fortsætte krigen, siger Ukraines præsident.