Around the cake layer's edge, pipe a barrier. This step makes sure that your filling doesn't flow over the cake's edges.