Minha solução segue abaixo, fiz usando o elemento clear, e funcionou perfeitamente. Espero que ajude.
.primeiro {
background-color: red;
float:left;
clear:both;
}
.segundo {
background-color: blue;
float: left;
clear:right
}
.terceiro {
width: 200px;
height: 200px;
line-height: 200px;
background-color: green;
float:right
}
.quarto {
background-color: orange;
float:left;
}
.quinto {
background-color: magenta;
float: right
}